Skip to content

Commit

Permalink
refined Usage topic
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegZee committed Oct 25, 2015
1 parent cb58fae commit 6676695
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ Currently supports google, facebook and github providers. More providers to go a

The following code assumes you are adding google authorization support.

### Requesting client_id and client_secret from google
First you have to obtain so called client_id and client_secret keys from all providers you will support in your application.
### Add nuget package

Run the following command in Package Manager Console:

PM> Install-Package Suave.OAuth

### Requesting client_id and client_secret from OAuth providers

Obtain so called client_id and client_secret keys from all providers you are going to support in your application.
E.g for google head to [manage projects](https://console.developers.google.com/project) page, create a new project, navigate
to `Credentials` page, click `Add credentials` and choose `OAuth 2.0 client ID`. Choose `other` and you can skip
specifying redundant info.
Expand All @@ -28,6 +35,10 @@ let oauthConfigs =
{c with
client_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
client_secret = "yyyyyyyyyyyyyyyyyyyyyyy"}
| "facebook" -> fun c ->
{c with
client_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
client_secret = "yyyyyyyyyyyyyyyyyyyyyyy"}
| _ -> id // we do not provide secret keys for other oauth providers
)
let processLoginUri = "http://localhost:8083/oalogin"
Expand Down

0 comments on commit 6676695

Please sign in to comment.