Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting securtiy token response error . #104

Open
sufiyan1234 opened this issue Apr 7, 2022 · 2 comments
Open

I am getting securtiy token response error . #104

sufiyan1234 opened this issue Apr 7, 2022 · 2 comments

Comments

@sufiyan1234
Copy link

spauth.getAuth("https://[company].sharepoint.com", {
username: "[]@[company].onmicrosoft.com",
password: "[
]",
online: true
})
new Error(securityTokenResponse.toString())

C:\Users\Admin\Desktop\try\node_modules\node-sp-auth\lib\src\auth\resolvers\OnlineUserCredentials.js:154
throw new Error(securityTokenResponse.toString());
^

Error: <S:Fault>
<S:Code>
<S:Value>S:Sender</S:Value>
<S:Subcode>
<S:Value>wst:FailedAuthentication</S:Value>
</S:Subcode>
</S:Code>
<S:Reason>
<S:Text xml:lang="en-US">Authentication Failure</S:Text>
</S:Reason>
<S:Detail>
<psf:error xmlns:psf="http://schemas.microsoft.com/Passport/SoapServices/SOAPFault">
psf:value0x80048823</psf:value>
psf:internalerror
psf:code0x80048823</psf:code>
psf:textAADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.</psf:text>
</psf:internalerror>
</psf:error>
</S:Detail>
</S:Fault>
at OnlineUserCredentials.postToken (C:\Users\Admin\Desktop\try\node_modules\node-sp-auth\lib\src\auth\resolvers\OnlineUserCredentials.js:154:19)
at C:\Users\Admin\Desktop\try\node_modules\node-sp-auth\lib\src\auth\resolvers\OnlineUserCredentials.js:48:25
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@rak-dev
Copy link

rak-dev commented Sep 9, 2022

I am getting similar issue. Did you find any solution??

@koltyakov
Copy link
Contributor

koltyakov commented Sep 9, 2022

AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.

You can't get around CAS. It's configuration rules blocks external authentication. You could reach your tenant admins or try alternative authentication methods, maybe Add-in or On-Demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants