Skip to content

How-to: Authenticate a user that was authenticated through external system #551

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

Open
colin-riddell opened this issue Dec 23, 2021 · 1 comment
Labels
type: documentation A documentation update

Comments

@colin-riddell
Copy link

How to authenticate a user based on another JWT - eg pre-authenticate the user that was authenticated through another (separately hosted) login page. The guide could be called "How to use SAS with existing non-oauth system + login page" or something?

This would be very useful as there are a lot of systems out there that are built on JWT, but don't provide full OAuth2.0 flow support. This would allow people to use SAS on-top of their non-oauth system without ripping out the existing system.

Related question and answer: Spring Authorization Server: How to use login form hosted on a separate application?

Ref: #499

@colin-riddell colin-riddell added the type: enhancement A general enhancement label Dec 23, 2021
@sjohnr
Copy link
Member

sjohnr commented Dec 23, 2021

For others, just a note to see this answer to the stackoverflow question specifically. This would be adapting that answer into a guide. Another option for this How-to could be:

  • How-to: Externally authenticate a user without OAuth or SAML

Or even:

  • How-to: Pre-authenticate a user with a JWT assertion in the URL

As I mentioned in the SO answer, this could relate to JWT Profile for OAuth 2.0 Client Authentication and Authorization Grants and #59, which was recently merged! So there may now be better or related answers (though there's probably a better answer regardless 😉).

@jgrandja jgrandja changed the title How-to: Authenticate user that was authenticated through another system + separate login page. How-to: Authenticate a user that was authenticated through external system Dec 21, 2022
@jgrandja jgrandja added type: documentation A documentation update and removed type: enhancement A general enhancement labels May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

3 participants