Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth2 request fail when user has logged out #313

Open
nikosft opened this issue Jan 24, 2023 · 0 comments
Open

OAuth2 request fail when user has logged out #313

nikosft opened this issue Jan 24, 2023 · 0 comments

Comments

@nikosft
Copy link
Contributor

nikosft commented Jan 24, 2023

I am running IdM from docker, ver 8.3.2 and I interact with Safari on Mac. I have logged in and logged out several times. At some point, when logged out the following request

http://localhost:3005/oauth2/authorize?response_type=code&client_id=c10a0098-9c32-4b37-8f22-d46845c6b1cd&state=xyz&scope=openid&redirect_uri=https%3A%2F%2Fexample%2Ecom

Fails with the following error

ops! something went wrong!
contact with the administrators of Test application and send your error details
OAuth2 request has failed!
error - /opt/fiware-idm/views/oauth/index.ejs:16 14| <div class=alternative_login> 15| <div class="row"> >> 16| <%- include(login)%> 17| <%- include(presentation)%> 18| </div> 19| </div> /opt/fiware-idm/views/oauth/_login.ejs:8 6| <input type='hidden' name='_csrf' value='<%= csrf_token%>' /> 7| <div class="modal-body clearfix"> >> 8| <% if (errors.indexOf("sessionExpired") != -1) { %> 9| <span class="help-block alert alert-warning"><p><%=translation.oauth.login.alert01%></p></span> 10| <% } %> 11| <% if (errors.indexOf("user_not_found") != -1 || errors.indexOf("invalid") != -1) { %> errors.indexOf is not a function

(see also screenshot)

image

If I logged in the request works as expected. Moreover in an private windows the request works as expected (even if I am logged out)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant