README.md in gds-sso-0.8.0 vs README.md in gds-sso-1.0.0
- old
+ new
@@ -26,18 +26,25 @@
# 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']
+ # Application name as per signonotron2's database, used for permissions
+ config.default_scope = "Need-o-Tron"
+
# 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
The user model needs to respond to klass.find_by_uid(uid), and must include the GDS::SSO::User module.
+
+It also needs to specify the below (or an equivalent):
+
+ attr_accessible :uid, :email, :name, :permissions, as: :oauth
You also need to include `GDS::SSO::ControllerMethods` in your ApplicationController
## Use in development mode