Replies: 6 comments 8 replies
-
Did you follow this guidance: https://pnp.github.io/pnpcore/using-the-sdk/configuring%20authentication.html#i-want-to-configure-my-own-azure-ad-application-recommended? |
Beta Was this translation helpful? Give feedback.
-
I used this article as guidance: https://github.com/pnp/pnpframework/blob/dev/docs/MigratingFromPnPSitesCore.md |
Beta Was this translation helpful? Give feedback.
-
Did you update the appsettings.json to reflect your setup (tenant if, app id etc)? |
Beta Was this translation helpful? Give feedback.
-
Hi!
Thank you for your help!
I configured my app according to your example and got another error message
about administration rights.
I contact with our company administrator and he try to log in with admin
credentials today.
Result is different than previously but still unsuccessful, I have got such
error:
[image: image.png]
Which URL should be matched?
trešd., 2021. g. 25. aug., plkst. 15:17 — lietotājs Bert Jansen (<
***@***.***>) rakstīja:
… Here's a sample filled config. For the credential manager option you need
to create an entry in your windows credential manager with the name you
specify in the config and store the account you're using and it's password.
The default option in this sample however is to use the interactive login,
if you've plugged in the id of the app you've created and you've correctly
set the redirect uri in the app and config this should work. Also cross
check the instructions (I've just added additional permissions the app
needs)
{
"key": "generic",
"CustomSettings": {
"ClientId": "c545f9ce-1c11-440b-812b-0b37118a9e83",
"TenantId": "d8623c9e-30c7-473a-99de-d907df49a19a",
"DemoSiteUrl": "https://bertonline.sharepoint.com/sites/prov-1",
"DemoSubSiteUrl": "https://bertonline.sharepoint.com/sites/prov-1/testsub1",
"CredentialManager": "bertonline",
"RedirectUri": "http://localhost"
},
"Logging": {
"LogLevel": {
"Default": "Information"
}
}
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#518 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADY4FQJQFSNR4UX2G4RG47DT6TNNVANCNFSM5BMWXXCA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
Sorry!
Here is the error message:
"Sorry, but we’re having trouble signing you in.
AADSTS50011: The reply URL specified in the request does not match the
reply URLs configured for the application:
'021bba45-b8e0-41fb-9d96-7493af634bea'."
otrd., 2021. g. 31. aug., plkst. 16:56 — lietotājs Bert Jansen (<
***@***.***>) rakstīja:
… The screenshot is not visible, please share it again or write down the
error you got
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#518 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADY4FQKZLLTDEKEDUFE3UPLT7TNR5ANCNFSM5BMWXXCA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Thanks!
The problem was in the Azure AD redirect URL.
But I can log in with global administrator privileges only.
If I try to log in with my regular user it asks to log in as administrator.
What kind of permissions needs regular user to log in through PnP
Framework?
otrd., 2021. g. 31. aug., plkst. 17:16 — lietotājs Bert Jansen (<
***@***.***>) rakstīja:
… Seems like there's a mismatch in the redirect url specified on the Azure
AD app and the one in the settings file. In the configuration I shared
earlier there's http://localhost being used, if you've setup something
different in your Azure AD app you need to update this configuration.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#518 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADY4FQJHBFK2O244PKJMYIDT7TPZ7ANCNFSM5BMWXXCA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hi!
I try to configure access to our company Sharepoint account using my own program with PnP Framework as well as PnP Core SDK - Console Sample, but in both situations I have got error "AADSTS500011: The resource principal named https://login.microsoftonline.com was not found in the tenant named {my-tenant-id}. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant."
I try to log in with standard user credentials and admin user credentials, but result is the same.
Please help!
Beta Was this translation helpful? Give feedback.
All reactions