asp.net mvc - Does the tenant ID stays always the same in the client credential grant flow? -


i developing asp.net mvc application has access office365 apis. used description here in order app access token.

now after running application got aad consent flow in order token id, can tenant id. tenant id needed generate valid access token.

my question is: can safely store tenantid in db , use everytime call api access token?? or tenantid change time time? worked same tenantid last tries, cause changed application after received tenantid not visit azure ad instead make api calls.

can application use same tenantid in order receive access_token?

edit: changed "token" tenantid due confusion.

in azure active directory (azure ad), tenant representative of organization. dedicated instance of azure ad service organization receives , owns when signs microsoft cloud service such azure, microsoft intune, or office 365. each azure ad tenant distinct , separate other azure ad tenants.

how azure active directory tenant

as such, existing azure ad's tenant id not change. when create new azure ad distinct tenant id new ad.

to answer questions below:

  1. yes can safely store tenant id in db long you're using same azure ad

  2. no, explanation given above

  3. yes. more precise, application needs presents client credentials oauth2 token issuing endpoint, , in return gets access token represents application without user information.

hope answers clear , easy understand , helps resolve issues.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -