Code Monkey home page Code Monkey logo

Comments (7)

sungam3r avatar sungam3r commented on July 18, 2024

v5 auth package required - #180 .

and version 6.0.0 of GraphQL.

GraphQL server I think (not a GraphQL.NET itself with latest version 5.2.0).

from authorization.

dannykruitbosch avatar dannykruitbosch commented on July 18, 2024

Any ETA on v5 auth package?

from authorization.

Shane32 avatar Shane32 commented on July 18, 2024

I rewrote the Server project's auth library recently, with support for anonymous fields, roles, policies, fields skipped or included via directives, and so on. It is based on the ASP.NET Core authorization and authentication design and works with requests over WebSockets as well. One limitation it has is that it does not perform authorization checks on input graph types. You can get it here: https://github.com/Shane32/GraphQL.AspNetCore3

The Server auth library is "v5 compatible" but has not yet been updated to work with any of those new features, and no authentication support for connections over WebSockets. As @sungam3r noted, this project's compatibility update is tracked in #180 - I do not know the status.

@dannykruitbosch Do you host your GraphQL implementation using the GraphQL Server library on ASP.NET Core? Out of curiosity, why did you choose to use this authentication library over the one within the server project?

from authorization.

sungam3r avatar sungam3r commented on July 18, 2024

@Shane32 I merged master into develop, resolved conflicts and I'm ready to release v5 today after your review of #180.

from authorization.

sungam3r avatar sungam3r commented on July 18, 2024

Any ETA on v5 auth package?

Today 😉

from authorization.

dannykruitbosch avatar dannykruitbosch commented on July 18, 2024

I rewrote the Server project's auth library recently, with support for anonymous fields, roles, policies, fields skipped or included via directives, and so on. It is based on the ASP.NET Core authorization and authentication design and works with requests over WebSockets as well. One limitation it has is that it does not perform authorization checks on input graph types. You can get it here: https://github.com/Shane32/GraphQL.AspNetCore3

The Server auth library is "v5 compatible" but has not yet been updated to work with any of those new features, and no authentication support for connections over WebSockets. As @sungam3r noted, this project's compatibility update is tracked in #180 - I do not know the status.

@dannykruitbosch Do you host your GraphQL implementation using the GraphQL Server library on ASP.NET Core? Out of curiosity, why did you choose to use this authentication library over the one within the server project?

Hi, don't know really. I am a bit confused on what to use. I don't think it's that clear from the documentation on what to use in which situation. Today I've updated all my dependencies and switched to the one in the server project. It works now ;)

from authorization.

sungam3r avatar sungam3r commented on July 18, 2024

https://github.com/graphql-dotnet/authorization/releases/tag/5.0.0
https://www.nuget.org/packages/GraphQL.Authorization/5.0.0

Closing this issue. Feel free to ask further questions if any.

from authorization.

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.