KGPro | knowledge graph | Graph Database library
kandi X-RAY | KGPro Summary
kandi X-RAY | KGPro Summary
Builde your own Knowledge Graph (not an Ontology).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Delete the given triple
- Delete the given entity
- Delete the given entity
- Deletes an entity
- Delete the given triple
- Inserts the given triple into this operation
- Insert a Triple
- Performs a query on the trie
- Performs a single query on the triple
- Get list of triples
- Convert statement to trie
- Updates the triple with the given triple
- Apply the given predicate to this triple
- List operations for a given entity
- Creates a hashCode for this subject
- Returns true if this object is equal to base name
- Performs a logical OR operation on this trie
- Exclusive predicate
- Load a list of triples from a file
- Prints the object type
- String representation
- Get a triple iterator from the specified file
- Print model
- Remove all model entries
- Checks if model is empty
- Checks if this triple is equal in the dictionary
KGPro Key Features
KGPro Examples and Code Snippets
Community Discussions
Trending Discussions on KGPro
QUESTION
We have a case where we have 'clients'. Every client is an different Azure tenant but we keep their tenant id in the database. So we have Angular application where we want to have like a dropdown with all the clients and based on the selected client to query their tenant users so we can add him to our database and give them permissions and stuff to all other applications. As per my readings this in not achievable,
Because this permission application will be used from like 3-4 guys which are part of our tenant only.
Is there a way we can achieve that?
...ANSWER
Answered 2019-Mar-22 at 14:48You would need to use the User.Read.All
Application permissions and authenticate using the Client Credentials grant. You would then need to retrieve a token from each tenant prior to calling /v1.0/users
.
Note that this will require receiving Admin Consent from each tenant you need to query.
Rohit's comment below is an excellent point. If your app is a SPA, meaning the authorization is happening entirely in the browser via Javascript, you're really limited to the OAuth's Implicit Grant.
To use Client Credentials or Authorization Code grants, you need some kind of backend API to handle the authentication and calls to authenticated APIs. I would argue that you should be doing this anyway, if for no other reason than forcing your user to reauthenticate every hour isn't a great user experience.
If you don't mind requiring each user in the tenant to authenticate, you could use the Authorization Code grant. This is a bit more complex of a set up because it requires you to keep track of separate Refresh Tokens for each user. Your backend would need to retrieve the Refresh Token, Exchange it for a set of new tokens (access_token
and refresh_token
), Store the new Refresh Token, and then call the API using the new Access Token.
Since there is a 1:1 relationship between the Token and the User so, at scale, you're looking at a lot of tokens. You'll also need a bunch of maintenance workflows to handle issues that may come up (refreshing the token fails, new scope requirements, etc.).
It really comes down to the depth of the relationship between your app and the tenant. If you're providing security and analysis to the entire organization, then asking for global Mail.Read
is certainly reasonable. If you're providing a service to just part of an organization, it can be hard to get IT to sign off on such a broad permission scope.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install KGPro
You can use KGPro like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the KGPro component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page