README.md in gds-sso-0.4.1 vs README.md in gds-sso-0.4.2
- old
+ new
@@ -2,11 +2,11 @@
GDS-SSO provides everything needed to integrate an application with the sign-on-o-tron single-sign-on
(https://github.com/alphagov/sign-on-o-tron) as used by the Government Digital Service, though it
will probably also work with a range of other oauth2 providers.
-It is a wrapper around omniauth that adds a 'strategy' for oAuth2 integration against sign-on-o-tron,
+It is a wrapper around omniauth that adds a 'strategy' for oAuth2 integration against sign-on-o-tron,
and the necessary controller to support that request flow.
For more details on OmniAuth and oAuth2 integration see https://github.com/intridea/omniauth
@@ -21,17 +21,17 @@
Create a `config/initializers/gds-sso.rb` that looks like:
GDS::SSO.config do |config|
config.user_model = 'User'
-
+
# set up ID and Secret in a way which doesn't require it to be checked in to source control...
config.oauth_id = ENV['OAUTH_ID']
config.oauth_secret = ENV['OAUTH_SECRET']
-
+
# optional config for location of sign-on-o-tron
config.oauth_root_url = "http://localhost:3001"
-
+
# optional config for API Access (requests which accept application/json)
config.basic_auth_user = 'api'
config.basic_auth_password = 'secret'
end
\ No newline at end of file