# Simple SSO with JWT

**URL:** <https://community.auth0.com/t/simple-sso-with-jwt/12447>\
**Category:** JWT.io\
**Created:** [June 20, 2018, 7:54am UTC](https://community.auth0.com/t/simple-sso-with-jwt/12447 "2018-06-20T07:54:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikolay.cheltsov](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@nikolay.cheltsov](https://community.auth0.com/u/nikolay.cheltsov)\
**Post date:** [June 20, 2018, 7:54am UTC](https://community.auth0.com/t/simple-sso-with-jwt/12447/1 "2018-06-20T07:54:13Z")

</div>

Hello guys,

I totally got lost in the aut0 documentation and something that I thought should be simple now seems a nightmare.

I want:

1. To use auth0 as SSO for my application with multiple users
2. Be redirected to login page and obtain JWT token for a concrete user not an application.
3. Pass this token to a java spring backend application configured with @PreAuthorize annotation to authorize the logged user.

As simple as it sounds, I can not understand how to do this with auth0.

1. The APIs with the scopes are created for an application not for a user. Why would I need to authorize a whole application? I need to authorize a single user of this application? I can not understand how this is configured.
2. I can not understand how to obtain a JWT token when user is logged and can not understand which endpoint to call. I want to use a front end app to get this token and then to pass it to Java backend to validate if user has rights to perform given action?

What am I missing in the whole process? Please help.

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [September 6, 2018, 2:49pm UTC](https://community.auth0.com/t/simple-sso-with-jwt/12447/3 "2018-09-06T14:49:20Z")

</div>

👋 @nikolay.cheltsov it seems you are referring to the [`Client Credentials Grant`](https://auth0.com/docs/api-auth/grant/client-credentials) which as you mentioned the token is issued to the application itself, instead of an end user. What sort of application are you building? This article explains which flow to use for your application ([https://auth0.com/docs/api-auth/which-oauth-flow-to-use](https://auth0.com/docs/api-auth/which-oauth-flow-to-use)).

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 26, 2019, 9:57am UTC](https://community.auth0.com/t/simple-sso-with-jwt/12447/4 "2019-07-26T09:57:21Z")

</div>


