{ 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 /
  • General /
avatar image
0
Question by Yanir Calisar · Sep 20, 2015 at 09:16 AM · 429 Views authenticationapiconsoles

Defining global variables / keys - access token and customer ID

Hi

I built my first API console but in each API method I needed to include these 2 authentication keys:

access_token and customer ID.

For example:

https://{munchkinId}.mktorest.com/? >

This requires the user to insert these 2 keys every time he switches API method.

I am wondering what will be the easiest way to allow users to insert these keys only once?

Thanks!

Comment
Add comment Show 1
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 birute@google.com ♦♦   · Sep 20, 2015 at 04:22 PM 0
Link

@Marsh Gardiner is this something you can help or know who could?

Close

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by Alex Koo   · Sep 21, 2015 at 12:58 AM

Hi Yanir,

Assuming the customer ID doesn't need to change with the access token, a good approach to your concern is to use custom attributes and attach them to access tokens. Documentation on doing that can be found here. The idea is that, through this way, only the access token needs to be passed in with API calls. Then upon using VerifyAccessToken (or getOAuthV2Info policy) Apigee Edge will extract the customer ID.

After VerifyAccessToken, the custom attribute can be accessed via accesstoken.{custom_attribute}. After getOauthV2Infopolicy, the custom attribute can be access via oauthv2accesstoken.{policy_name}.accesstoken.{custom_attribute_name}.

Comment
Add comment · 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

Follow this Question

Answers Answers and Comments

14 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 avatar image avatar image avatar image avatar image

Related Questions

How do you manage API versioning? 2 Answers

is there a way to call NTLM enabled exchange webservice(EWS) from apigee proxy 1 Answer

API Development using API Tools and Technologies 1 Answer

Apigee ToGo login issues 1 Answer

Zookeeper Quorum Authentication 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