You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-23Lines changed: 0 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,29 +51,6 @@ Slack lets you choose from a [few different scopes](https://api.slack.com/docs/o
51
51
52
52
## Authentication Options
53
53
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:
After a successful auth, the callback request will include `request.env["omniauth.params"]` hash
67
-
68
-
```ruby
69
-
classCallbackController < ApplicationController
70
-
defslack
71
-
request.env["omniauth.params"]["state"]
72
-
# => "1234-foobutter"
73
-
end
74
-
end
75
-
```
76
-
77
54
### Team
78
55
79
56
> 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