question

VaidhisVelanDev-1263 avatar image
0 Votes"
VaidhisVelanDev-1263 asked VaidhisVelanDev-1263 commented

CORS issue when accessing https://{ADFS_SERVER}/adfs/userinfo

We are able to sucessfully login and get the token using the following code,

oauthService.clientId = 'd3263663-7950-4f48-99a9-ad10d7907245';
oauthService.loginUrl = 'https://{ADFS_SERVER}/adfs/oauth2/authorize';
oauthService.issuer = 'https://{ADFS_SERVER}/adfs';
oauthService.scope = "openid profile";
oauthService.responseType = 'id_token token';

But by using the token, we have called the userinfo API - https://{ADFS_SERVER}/adfs/userinfo

But it shows CORS error. anything to be done on ADFS Server for this issue.

adfs
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Is {ADFS_SERVER} the FQDN of the server, or the FQDN of the farm. It should be the latter.

0 Votes 0 ·

{ADFS_SERVER} Example : adfs1.spm.rp123.ca

0 Votes 0 ·
piaudonn avatar image piaudonn VaidhisVelanDev-1263 ·

But is adfs1.spm.rp123.ca what you have in the output of:

 (Get-ADFSProperties).HostName
0 Votes 0 ·
Show more comments

0 Answers