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

Configuring Authentication and Authorization is Not Obvious #638

Open
grahamc opened this issue Jan 19, 2015 · 1 comment
Open

Configuring Authentication and Authorization is Not Obvious #638

grahamc opened this issue Jan 19, 2015 · 1 comment

Comments

@grahamc
Copy link

grahamc commented Jan 19, 2015

The current documentation makes it pretty difficult to understand and follow how to use the OneLogin SAML authentication provider. After a few hours of debugging and digging I discovered you need to specify authorizationProviders in order for any pages to be made private.

NOTE: The current AuthorizationProviders only require auth for browser requests, so scripts using the API may not require authorization. YMMV, be careful.

This is the configuration I ended up with which successfully uses OneLogin's SAML authentication mechanism:

grails {
        awsAccounts=['YOURACCTNUMBER']
        awsAccountNames=['YOURACCTNUMBER':'accountnickname']
}

plugin {
        authenticationProvider='oneLoginAuthenticationProvider'
        authorizationProviders=['restrictBrowserAuthorizationProvider','restrictEditAuthorizationProvider']
}

secret {
        accessId='YOURACCESSID'
        secretKey='YOURSECRETKEY'
}

security {
        onelogin {
                url='https://app.onelogin.com/trust/saml2/http-post/sso/...'
                logoutUrl='https://app.onelogin.com/logout'
                certificate = 'certificate-base64-encoded'
        }
}

cloud {
        envStyle='prod'
        accountName='accountnickname'
        publicResourceAccounts=['amazon']
}
@thomastheakanath
Copy link

Which are the other SAML AuthenticationProviders supported? Wonder if it is feasible to implement something internally using MS Active Directory.

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

2 participants