How I can set username in console to go after OAuth2 auth?

Not applicable

I want to set name here http://joxi.ru/vDr818yhoVMgm6

Actual: <companyname>-Authenticateduser

Expected: <companyname>-<username>

I saw that in twitter provider.

Solved Solved
0 5 211
1 ACCEPTED SOLUTION

You cannot set it today. We make some guesses sometimes, but since this is not a standard part of the OAuth specification, it isn't always right. We'll consider more customization options for this in the future.

View solution in original post

5 REPLIES 5

You cannot set it today. We make some guesses sometimes, but since this is not a standard part of the OAuth specification, it isn't always right. We'll consider more customization options for this in the future.

And how does the twitter api do it? If it is some special field - no problem, I can return any.

You can see an example of Twitter's token response here:

https://dev.twitter.com/oauth/reference/post/oauth/access_token

They use "screen_name", which if you return with your token, will likely be picked up by the Console.

So, if I use oauth2, I have to return screen_name with access_token on last step or there is some other scenario?

Yes, that's the idea. Though we didn't build it to work this way specifically, it's worth a try (note that Twitter uses OAuth 1.0a not OAuth 2).