{ 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
    • 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 /
  • Microgateway /
avatar image
1
Question by jaskarangump · Dec 22, 2016 at 10:10 PM · 260 Views edge micro

Both apikey and oauth in Edge micro

Can we configure both apikey and oauth simultaneously in edge micro. It should authenticate based on the request.

Thanks,

Jaskaran

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

Answer by aagrawal · Jan 26, 2017 at 09:11 PM

@Srinandan Sridhar It seems to be an issue with the edegemicro-auth as I can see that post API-key validation it creates a signed JWT token and send it back to the edge-micro to validate that.

We have configured jwt_public_key with the URL of our public key(not the one provided by Apigee) to sign and validate a JWT token, but the edegemicro-auth is signing the token retrieved from the Apigee vault. As the token is being signed with the Apigee generated private key but it being validated against our key, the authentication is failing.

Comment
Add comment Show 3 · 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 aagrawal · Jan 27, 2017 at 01:06 AM 0
Link

@Srinandan Sridhar . I can confirm the issue as when I point the jwt_public_key to jwt_public_key: 'https:// - . apigee.net/edgemicro-auth/publicKey' it works.

avatar image aagrawal · Jan 30, 2017 at 08:03 PM 0
Link

@Srinandan Sridhar could you identify the issue ?

avatar image srinandans ♦ aagrawal · Jan 30, 2017 at 08:06 PM 0
Link

Hey @aagrawal, I think we should start a new thread. You're trying to load custom certs and want to validate against them. Let's start a new thread please.

avatar image
0

Answer by srinandans · Dec 22, 2016 at 11:28 PM

All plugins will execute on all requests. Conditional execution is currently not possible in EM.

I have not tried apikey verify and oauth both enabled. But I don't see any reason for it to not work.

Comment
Add comment Show 5 · 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 aagrawal · Jan 26, 2017 at 10:10 AM 0
Link

As per docs configuration for both would be same but whenever I try with x-api-key in header edge micro gives 403.

avatar image srinandans ♦ aagrawal · Jan 26, 2017 at 05:23 PM 0
Link

I have this working. Does your API product include edgemicro-auth?

avatar image aagrawal srinandans ♦ · Jan 26, 2017 at 07:41 PM 0
Link

You were right @Srinandan Sridhar I missed the edgemicro-auth api in the product, but after adding that I can see that edgemicro-auth api is giving 200 but edgemico gateway is giving 401.

Show more comments

Follow this Question

Answers Answers and Comments

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

Related Questions

Does micro gateway support 2 way SSL (both north bound and south bound ) ?If yes how can we configure them ? 2 Answers

Which version of Apigee Edge microgateway is installed on machine ? 1 Answer

Edge Microgateway - Error in Configuration Step 1 Answer

What configurations should I do in Micro to work with an Enterprise Gateway like Data Power? 1 Answer

Edgemicro start and stop 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
© 2019 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
  • 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
  • Members
  • Badges