# Scope jwt token with SpringBoot

**URL:** <https://community.auth0.com/t/scope-jwt-token-with-springboot/44809>\
**Category:** Get Help\
**Tags:** jwt, scope, spring-security\
**Created:** [June 17, 2020, 5:24am UTC](https://community.auth0.com/t/scope-jwt-token-with-springboot/44809 "2020-06-17T05:24:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmaeng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kmaeng/32/21999_2.png) [@kmaeng](https://community.auth0.com/u/kmaeng)\
**Post date:** [June 17, 2020, 5:24am UTC](https://community.auth0.com/t/scope-jwt-token-with-springboot/44809/1 "2020-06-17T05:24:43Z")

</div>

Hi, I’m an newbie.  
I’m trying to test authorization with SpringBoot.

I followed up this example([Java Springboot API - Auth0 Docs](https://auth0.com/docs/quickstart/backend/java-spring-security5/01-authorization)).

But there is some issue that I can’t find scope values with ‘read:messages’.  
I can see only “scope=openid profile email” values.  
How can I get value? and what is my mistake?

I tried below steps.

1. I made SPA and I integrated with Auth0. (success)
2. I made RESTFul API service with SpringBoot. (success)
3. I created an APIs on Auth0 dashboard. (success)
4. Added permission read:messages on the APIs.
5. Assigned to an user the permission read:messages.
6. I called an api with Bearer token.
7. I could not pass /private-scoped api.

What is wrong?!

---

<div class="post-metadata">

**Author:** ![kmaeng](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kmaeng/32/21999_2.png) [@kmaeng](https://community.auth0.com/u/kmaeng)\
**Post date:** [June 17, 2020, 6:27am UTC](https://community.auth0.com/t/scope-jwt-token-with-springboot/44809/2 "2020-06-17T06:27:47Z")

</div>

Okay. I solved it. I requested the scope values when an user login on SPA.

---

<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:** [June 17, 2020, 12:03pm UTC](https://community.auth0.com/t/scope-jwt-token-with-springboot/44809/3 "2020-06-17T12:03:51Z")

</div>

Perfect! Thanks for sharing that with the rest of community!

---

<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:** [June 17, 2020, 12:56pm UTC](https://community.auth0.com/t/scope-jwt-token-with-springboot/44809/4 "2020-06-17T12:56:11Z")

</div>


