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
{{ message }}
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 3, 2019. It is now read-only.
Add a new endpoint that when called invites the user to slack. This should be a POST request named something like users/invite_to_slack. It should require authorization. It should take the current_user and pass the needed parameters to the current invite to slack job.
What are the parameters being passed to the API? The current implementation for my slack invite is just a nice landing page form where the user enters their email and get's an automatic invite to the channel. I can tweak the form to have the required inputs, or just go with the POST request.
I was kind of thinking that after they sign up through the already working form component, then they are redirected to the invite page. Can you elaborate on exactly what process the user goes through and what data you need to collect?
No params needed. When a user makes a request their JWT is passed in and we authenticate the user giving us access to the User object.
After login users will be redirected to discourse as per OperationCode/operationcode_frontend#308. We'll put some effort in other areas (discourse topics, welcome mailer, links in the profile) to make users aware of slack.
Activity
sethbergman commentedon Jul 20, 2017
What are the parameters being passed to the API? The current implementation for my slack invite is just a nice landing page form where the user enters their email and get's an automatic invite to the channel. I can tweak the form to have the required inputs, or just go with the POST request.
I was kind of thinking that after they sign up through the already working form component, then they are redirected to the invite page. Can you elaborate on exactly what process the user goes through and what data you need to collect?
rickr commentedon Jul 20, 2017
No params needed. When a user makes a request their JWT is passed in and we authenticate the user giving us access to the
Userobject.After login users will be redirected to discourse as per OperationCode/operationcode_frontend#308. We'll put some effort in other areas (discourse topics, welcome mailer, links in the profile) to make users aware of slack.