Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Commit

Permalink
Update contributions guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Chae committed Mar 4, 2016
1 parent befad14 commit 646a0b6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,28 @@ development with the following:

For Url:

`http://localhost:5000/`
`http://localhost:5000/auth/myusa/callback`

For Redirect uri:

`http://localhost:5000/auth/myusa/callback`

2. Generate a set of keys, `MYUSA_KEY` and `MYUSA_SECRET`, and reference them in
2. Under `Select the API Scopes that your Application will use`: select `Email
Address`.

3. Generate a set of keys, `MYUSA_KEY` and `MYUSA_SECRET`, and reference them in
`.env`

3. Edit the method `is_gsa` and its invocation in
4. Edit the method `is_gsa` and its invocation in
`/app/controllers/auth_controller` to accomodate non-`gsa.gov` email
addresses locally.

```ruby
# Invocation
if is_gsa?(auth_email)
if is_permitted?(auth_email)

# Method
def is_gsa?(auth_email)
def is_permitted?(auth_email)
/gsa.gov/.match(auth_email)
end
```
Expand Down

0 comments on commit 646a0b6

Please sign in to comment.