I want to set name here http://joxi.ru/vDr818yhoVMgm6
Actual: <companyname>-Authenticateduser
Expected: <companyname>-<username>
I saw that in twitter provider.
Answer by marshg@google.com · Mar 06, 2015 at 09:27 PM
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.
Answer by marshg@google.com · Mar 06, 2015 at 09:35 PM
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).
problem in adding ‘OAuth 2 Web Server Flow’ to the current revision. 1 Answer
How to obtain OAuth2 Access token?After creating Consumer Key and Consumer Secret? 1 Answer
oAuth & Custom Token Settings in Smartdocs? 2 Answers
OAuth Authorization Grant Type 'oauth-advanced' Sample Not Working Behind SSO 1 Answer
oAuth disable in smartdocs? 1 Answer