{ 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 /
  • Private Cloud Deployment /
avatar image
0
Question by Daniel Sitnik · Feb 17 at 08:59 PM · 13 Views ldaproleactive directoryexternal role mapperadexternal role mappingmapping

External Role Mapping and multiple Organizations

Hello,
I have a question regarding the External Role Mapping feature.

I currently have an OPDK 4.50.00 installation with multiple organizations and I'm testing the External Role Mapping Java implementation.

Right now I'm having a problem trying to identify to which organization the users belongs when they're logging in.

I was under the impression that during the login process on the Apigee UI, the getUserRoles method was going to be called with the expectedNamespace parameter being an instance of SystemNamespace or OrganizationNamespace.

What is currently happening is that this method is always called with only an instance of SystemNamespace. It is called once or twice for the sysadmin user (which is OK), and then called again for the user who is logging in, but always with SystemNamespace.

The problem is that SystemNamespace is not bound to any organization, so I'm left in the dark when I have to assign roles like below:

new NameSpacedRole("orgadmin", OrganizationNamespace.of("org-name???"))

So my question is, is this the expected behavior and I should have the organizations hardcoded in the class, or am I doing something wrong?

It is also not clear to me when I should assign roles using SystemNamespace or OrganizationNamespace. For instance, in this comment the user assigns the "orgadmin" role using a code like this:

new NameSpacedRole("orgadmin", SystemNamespace.get())

Thanks in advance for any advice on this topic.

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

0 Answers

  • Sort: 

Follow this Question

Answers Answers and Comments

61 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 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

AD based role mapping in On premise private cloud 1 Answer

Apigee Edge Integration with Active Directory for External Auth provider 4 Answers

Is there a way to use LDAP authentication instead of Apigee's authentication so that all internal users don't have to register on the Dev Portal too ? 4 Answers

Issue with LDAP Integration 1 Answer

while configuring OPDK standalone, getting error with LDAP, saying apigee-openladp. sh exited with unexpected status 5 0 Answers

  • 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