{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Developer Portal (Drupal-based) /
avatar image
0
Question by alex · Mar 06, 2015 at 04:19 PM · 131 Views oauth 2.0restconsolesidea

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

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

Actual: <companyname>-Authenticateduser

Expected: <companyname>-<username>

I saw that in twitter provider.

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

2 Answers

  • Sort: 
avatar image
1
Best Answer

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.

Comment
Add comment Show 1 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alex · Mar 06, 2015 at 09:30 PM 0
Link

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

avatar image
1

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.

Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image alex · Mar 06, 2015 at 09:43 PM 0
Link

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

avatar image marshg@google.com ♦♦ alex · Mar 06, 2015 at 10:01 PM 0
Link

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).

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

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

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges