# How to get Opaque access token in OKTA

**URL:** <https://devforum.okta.com/t/how-to-get-opaque-access-token-in-okta/8428>\
**Category:** Questions\
**Created:** [March 11, 2020, 8:01am UTC](https://devforum.okta.com/t/how-to-get-opaque-access-token-in-okta/8428 "2020-03-11T08:01:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rchopra8319](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rchopra8319](https://devforum.okta.com/u/rchopra8319)\
**Post date:** [March 11, 2020, 8:01am UTC](https://devforum.okta.com/t/how-to-get-opaque-access-token-in-okta/8428/1 "2020-03-11T08:01:56Z")

</div>

I didn’t find in OKTA documentation about how to request particular type of access token i.e opaque access token or JWT access token. I am using angular6 oidc-client package as client and OKTA as IDP to get access-token to get access to my protected API. My problem is i wanna use opaque string as access token instead of JWT but unable to figure out how to get that because by default i am getting jwt as access token.

constructor(private httpClient: HttpClient) {  
Log.logger = console;  
var config = {  
authority: ‘[https://dev-543130.okta.com/oauth2/default](https://dev-543130.okta.com/oauth2/default)’,  
client\_id: ‘gI1DP5jl2pJxyMwYRsq3eHE\*\*\*\*\*\*\*’,  
redirect\_uri: `${Constants.clientRoot}assets/oidc-login-redirect.html`,  
scope: ‘openid projects-api profile’,  
response\_type: ‘id\_token token’,  
post\_logout\_redirect\_uri: `${Constants.clientRoot}?postLogout=true`,  
userStore: new WebStorageStateStore({ store: window.localStorage }),  
automaticSilentRenew: true,  
silent\_redirect\_uri: `${Constants.clientRoot}assets/silent-redirect.html`,  
};  
this.\_userManager = new UserManager(config);  
this.\_userManager.getUser().then(user =\> {  
if (user && !user.expired) {  
this.\_user = user;  
this.loadSecurityContext();  
}  
});  
this.\_userManager.events.addUserLoaded(args =\> {  
this.\_userManager.getUser().then(user =\> {  
this.\_user = user;  
this.loadSecurityContext();  
});  
});  
}

---

<div class="post-metadata">

**Author:** ![Govner](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/govner/32/1099_2.png) [@Govner](https://devforum.okta.com/u/Govner)\
**Post date:** [March 11, 2020, 9:21am UTC](https://devforum.okta.com/t/how-to-get-opaque-access-token-in-okta/8428/2 "2020-03-11T09:21:03Z")

</div>

The specification says opaque but the implementation for most commercial IdP’s is JWT

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 24, 2024, 6:53pm UTC](https://devforum.okta.com/t/how-to-get-opaque-access-token-in-okta/8428/3 "2024-01-24T18:53:38Z")

</div>

Closed on January 24, 2024, 6:53pm UTC


