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 end session throwing error when no session #1761

Open
varvay opened this issue Aug 3, 2024 · 0 comments
Open

OAuth2 end session throwing error when no session #1761

varvay opened this issue Aug 3, 2024 · 0 comments
Assignees

Comments

@varvay
Copy link

varvay commented Aug 3, 2024

Expected Behavior

Following a resolved GitHub issue #169 , similar issue still occurred in OAuth2 implementation. I'm guessing that the /oauth/logout endpoint also suppose to be idempotent.

Actual Behaviour

Error thrown upon /oauth/logout API execution,

{
	"_links": {
		"self": [
			{
				"href": "/oauth/logout",
				"templated": false
			}
		]
	},
	"_embedded": {
		"errors": [
			{
				"message": "Required argument [Authentication authentication] not specified",
				"path": "/authentication"
			}
		]
	},
	"message": "Bad Request"
}

Steps To Reproduce

In my use case, the web app hosted separately from the back-end Micronaut app. The back-end should exposes oauth/login and oauth/logout to the web app and integrated to AWS Cognito to perform these activities which orchestrated by Micronaut Security OAuth2 implementation.

Here's a snippet of the application properties,

micronaut:
  security:
    authentication: idtoken
    oauth2:
      clients:
        cognito:
          client-id: <AWS Cognito client ID>
          client-secret: <AWS Cognito client secret>
          grant-type: authorization_code
          scopes: <Scopes>
          openid:
            issuer: <AWS Cognito>

Environment Information

No response

Example Application

No response

Version

4.5.1

@sdelamo sdelamo self-assigned this Sep 11, 2024
@sdelamo sdelamo removed this from 4.7.0 Release Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants