Using miniOrange connect ROR Doorkeeper for SSO mechanism

  • William
    Participant
    # 5 months ago

    Hi, I have a question about using miniOrange connect ROR Doorkeeper for implementing SSO mechanism.

    I saw the article was talking how to implement SSO with ROR doorkeeper.

    Single Sign-On for WordPress using Doorkeeper

    But here is some confused points that I wanted to figure out:

    Here is my ROR doorkeeper setting,
    1. Ruby version: 2.6.5
    2. Rails version: 6.0.3
    3. gem doorkeeper version: 5.4.0
    4. gem devise version: 4.7.2

    I used doorkeeper gem with devise gem to set the member authorization and processing members emails validation and password encrypted.
    Also, Creating access token server and clients sending access token to ask requests server are the same.

    5. Here is my doorkeeper initializers setting:

    
    resource_owner_authenticator do
        current_user || warden.authenticate!(:scope => :user)
    end
    

    So here is my questions:

    When I created an new doorkeeper application for miniOrange,
    1. Do I need to set any scope value?
    2. Do I need to set any redirect URI or not?
    3. Do I need select the Confidential value or not?

    For miniOrange setting:
    4. Are “authorize endpoint”, “Access token endpoint”, and “Get user info endpoint” using doorkeeper default route, right?

    Gaurav Sood
    Participant
    # 2 months, 1 week ago

    Hi William,

    You can find the answers below:

    1. Do I need to set any scope value?

    You need to put the value as public.

    2. Do I need to set any redirect URI or not?

    Redirect URI can be the base URL of Doorkeeper.

    3. Do I need select the Confidential value or not?

    Can you elaborate on this?

    4. Are “authorize endpoint”, “Access token endpoint”, and “Get user info endpoint” using doorkeeper default route, right?

    Yes. The default routes should be used.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.