Skip to content

authentication (azure) - ruby #421

Closed

Description

@baywet

Kiota currently doesn't provide an authentication library for Ruby.
This is a prerequisite for any client. currently blocked as there's no azure identity library for Ruby.

Activity

  1. added this to the Beta milestone on Jul 28, 2021
  2. changed the title [-]authentication (azure)[/-] [+]authentication (azure) - ruby[/+] on Jul 28, 2021
  3. removed their assignment
    on Aug 10, 2021
  4. added
    blockedThis work can't be done until an external dependent work is done.
    on Jan 5, 2022
  5. removed
    blockedThis work can't be done until an external dependent work is done.
    on Jun 22, 2022
  6. baywet commented on Jun 22, 2022

    @baywet
    MemberAuthor

    As a recap here: azure/MIP don't have any plans to release MSAL/azure identity anytime soon.
    We need to identify an alternative, so the first step will be to do some research by looking at existing libs and their popularity, feature set (token caching etc...), how often are they updated, license etc...
    Osose Ewaleifoh (@osose-e) you can report your findings directly here.
    Once we've identified a suitable candidate, we'll need to implement the authentication provider and access token provider (I'll create a separate issue for this one) with that library and as its own package (similar to other languages with azure identity)

  7. osose-e commented on Jun 22, 2022

    @osose-e
    Contributor

    OAuth2
    OAuth2 is a Ruby gem (library) that is for "implementing OAuth 2.0 clients and servers in Ruby applications." This is an opensource project under an MIT license.

    According to ruby.libhunt.com, the codebase is stable (and from their GitHub it looks like they're trying to push out another release). This project received L5 code quality rank (highest level) from Lumnify (the only info I found about Lumnify was here, so I don't know how reputable it is).

    OAuth2 seems relatively popular, and actively maintained (last commit was six days ago).

    OpenID connect is possible with this gem, per this post.

    The source code for OAuth2 is here. According to OAuth2's github, there are 20 open issues (because the team maintaining the big code base is quite small).

    The most concerning open issue is here and it's about MS OpenID Connect responses not containing an access token, and OAuth2 incorrectly throwing errors as a result. While this bug (specifically about MS Chart) is labeled open... it looks like people made a work around/fix/PR here (if you scroll to the bottom). In summary, that means the MS Chart/MS Open ID Connect thing may not be an issue anymore, and the open bugs list might just be outdated.

    I will add some more libraries in this thread

  8. osose-e commented on Jun 27, 2022

    @osose-e
    Contributor

    Devise
    Devise is a Ruby gem (library) that is “a flexible authentication solution for Rails based on Warden.” Rails is a “server-side web application framework.” Devise is under an MIT license.

    According to ruby.libhunt.com, the codebase is stable. This project received L5 code quality rank (highest level) from Lumnify (the only info I found about Lumnify was here, so I don't know how reputable it is).

    Devise is really popular (it’s the authentication library most Ruby-ers know or are familiar with) and actively maintained (last commit was nine days ago).

    OpenID connect is complicated with this gem, from what I could tell most people just used OAuth2.
    The source code for Devise is here. According to Devise’s github, there are 144 open issues.

    The most concerning thing about Devise is that it is primarily for Rails applications. Not everyone that wants to use a Ruby SDK will be creating a Rails application, making the SDK a lot denser than it has to be for certain users. This is an issue because one of the selling points of Kiota is that we generate lightweight, customizable SDKs.

    Similar gems (Doorkeeper (Rails), Clearance (Rails), etc) [Less popular versions]

  9. osose-e commented on Jun 27, 2022

    @osose-e
    Contributor

    JWT

    JWT is a Ruby gem (library) that is “a pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.” JWT makes secure API authentication easy. It is under an MIT license.

    According to ruby.libhunt.com, the codebase is stable. This project received L5 code quality rank (highest level) from Lumnify (the only info I found about Lumnify was here, so I don't know how reputable it is).

    JWT is relatively popular, and it’s increasing in popularity. It is also actively maintained (last commit was three days ago).

    OpenID connect is possible with this gem (see post for OAuth2 for link), from what I could tell most people just used it in conjunction with OAuth2 (which makes sense because the purpose of JWT is security).

    The source code for JWT is here. According to JWT’s github, there are 29 open issues, and about 4 of them are labeled as possible bugs; none of them look too concerning.

    It looks like JWT is a necessary add on to our chosen gem because security is important.

  10. baywet commented on Jun 27, 2022

    @baywet
    MemberAuthor

    Thanks for sharing all that additional information! One aspect I forgot to share in our initial connect is we can't make choices that'd force people to use rails because not everybody is. Yes rails is very popular in the Ruby community but as far as I understand it's a rather radical impact on the code base (web app vs any kind of app).

  11. baywet commented on Jun 27, 2022

    @baywet
    MemberAuthor

    To capture what was said on our call for other people watching:

    • JWT is too low level (tokens generation, validation, signature) for our purpose
    • Devise requires rails, which is a big pre-requisite we don't want to push on our SDK users
    • OAuth2 looks like a good candidate, which we'll proceed with on the implementation work
  12. ghost added on Jul 20, 2022
  13. ghost removed on Jul 20, 2022
  14. ghost added on Jul 20, 2022
  15. ghost removed on Jul 21, 2022
  16. ghost added on Jul 21, 2022
  17. ghost removed on Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions