Git Product home page Git Product logo

Comments (6)

leastprivilege avatar leastprivilege commented on May 31, 2024

Only users in the "IdentityServerUsers" role are able to request tokens. That might be error #1.

For the AntiCSRF error message - that is happening in your app - not IdSrv right?

from identityserver2.

ryanhelms avatar ryanhelms commented on May 31, 2024

I am also having the same problem, in regards to:

"A claim of type 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier' or 'http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider'" ... I am beating my head . Any advice.

Thanks for all of your great work and tutorials. Once I get this stuff down, it will GREATLY help me on many projects where we have made custom solutions for this.

from identityserver2.

leastprivilege avatar leastprivilege commented on May 31, 2024

And I am asking the same question - where does this error occur? In IdSrv or in your application?

My assumption is that it is in your application - and the error message should be quite clear. You have to set a claim / claim pair that uniquely identifies the client for anti CSRF.

from identityserver2.

ryanhelms avatar ryanhelms commented on May 31, 2024

I'm sorry, I was being thick-headed. It was happening on my application and yes you were right , it was completely clear. 2 full-time jobs has my brain fizzling at some points in the day. Thanks for the kickstart, but this will not be the last you've heard from me! ;)

from identityserver2.

sankarapandian18 avatar sankarapandian18 commented on May 31, 2024

hi, i am also having same error. in orchard application.

public static MvcHtmlString AntiForgeryTokenOrchard(this HtmlHelper htmlHelper) {

        try {
            return htmlHelper.AntiForgeryToken(); // error

A claim of type 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier' or

'http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider' was not present on the provided ClaimsIdentity. To enable anti-forgery token

support with claims-based authentication, please verify that the configured claims provider is providing both of these claims on the ClaimsIdentity instances it

generates. If the configured claims provider instead uses a different claim type as a unique identifier, it can be configured by setting the static property

AntiForgeryConfig.UniqueClaimTypeIdentifier.

please advice...

from identityserver2.

brockallen avatar brockallen commented on May 31, 2024

@sankarapandian18, here ya go: http://brockallen.com/2012/07/08/mvc-4-antiforgerytoken-and-claims/

from identityserver2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.