Skip to content

Commit 11266fd

Browse files
committed
Merge pull request #10 from mkdynamic/patch-1
Remove incorrect information about state param.
2 parents 37ff5b3 + 4bf8a66 commit 11266fd

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -51,29 +51,6 @@ Slack lets you choose from a [few different scopes](https://api.slack.com/docs/o
5151

5252
## Authentication Options
5353

54-
### State
55-
56-
> *unique string to be passed back upon completion*
57-
58-
> The state parameter should be used to avoid forgery attacks by passing in a value that's unique to the user you're authenticating and checking it when auth completes.
59-
60-
for a logged in user, you might want to include state, for example with devise:
61-
62-
`https://www.yourapp.com/users/auth/slack?state=1234-foobutter`
63-
64-
creates an auth session with `state`
65-
66-
After a successful auth, the callback request will include `request.env["omniauth.params"]` hash
67-
68-
```ruby
69-
class CallbackController < ApplicationController
70-
def slack
71-
request.env["omniauth.params"]["state"]
72-
# => "1234-foobutter"
73-
end
74-
end
75-
```
76-
7754
### Team
7855

7956
> If you don't pass a team param, the user will be allowed to choose which team they are authenticating against. Passing this param ensures the user will auth against an account on that particular team.

0 commit comments

Comments
 (0)