Comments (5)
Events raised by Slack (and thus propagated through to bolt) won't include this information as event payloads will only include Slack domain objects like Slack user IDs, Slack workspace IDs, etc. Slack user IDs have an implied verified email as, as far as I can tell, an email is required to create a Slack user object. You can retrieve the email associated with a Slack user ID in bolt using the users.info
API though your app will require a few additional email-related scopes (more info about that here).
from bolt-python.
Thank you for the info! So i can assume that whenever i cross search for the user using their users.info, the email returned is verified. A followup question to this is, when going through the oauthflow:
I noticed that during run_installation that a user_id is used;
app_id=oauth_response.get("app_id"),
enterprise_id=installed_enterprise.get("id"),
enterprise_name=installed_enterprise.get("name"),
enterprise_url=enterprise_url,
team_id=installed_team.get("id"),
team_name=installed_team.get("name"),
bot_token=bot_token,
bot_id=bot_id,
bot_user_id=oauth_response.get("bot_user_id"),
bot_scopes=oauth_response.get("scope"), # comma-separated string
bot_refresh_token=oauth_response.get("refresh_token"), # since v1.7
bot_token_expires_in=oauth_response.get("expires_in"), # since v1.7
user_id=installer.get("id"),
user_token=installer.get("access_token"),
user_scopes=installer.get("scope"), # comma-separated string
user_refresh_token=installer.get("refresh_token"), # since v1.7
user_token_expires_in=installer.get("expires_in"), # since v1.7
incoming_webhook_url=incoming_webhook.get("url"),
incoming_webhook_channel=incoming_webhook.get("channel"),
incoming_webhook_channel_id=incoming_webhook.get("channel_id"),
incoming_webhook_configuration_url=incoming_webhook.get("configuration_url"),
is_enterprise_install=is_enterprise_install,
token_type=oauth_response.get("token_type"),
)
can i assume that as long as there is a userid, this is a user with verified email
from bolt-python.
Also another question that i had was - is there a pro or con to using openid vs the oauth flow that slack bolt provides?
from bolt-python.
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
from bolt-python.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.
from bolt-python.
Related Issues (20)
- Message event is able to read personal messages sent to/recieved from other users in same workspace from installed app. HOT 9
- views_update not updating initial_value of text area when initial_value was set while generating the initial view HOT 4
- Store Installation data in respective Slack org's Infrastructure HOT 8
- Invalid request signature detected when running a bot inside a container HOT 2
- MultiTeamsAuthorization error HOT 4
- @app_mention event is not being triggered sometimes HOT 4
- How to enable multiple connection in socket mode in bolt python HOT 6
- Customize user-facing message sent when an installation is not managed by bolt-python app HOT 1
- Slack API revokes an access token after some time when running the code in Lambda HOT 4
- Bolt Slack API is very unclear on multiple workspace install HOT 6
- enable_token_revocation_listeners() is not invoking unistallation method of a custom installation store HOT 2
- [Question] Is there a way to specify the default tab for an app HOT 3
- Allow for the "confirm" field within the Overflow menu element to be used on a per-item basis HOT 2
- Redirect after Request to Install submission for Slack App HOT 1
- Message Event: how to distinguish messages sent to bot DM's as oppose to DM's between users. HOT 1
- How to send data for external_select where it takes more time to fetch the data? HOT 3
- How does `bolt-python` rotate tokens? HOT 6
- Connecting an installation to the authed user of my app HOT 2
- slack_bolt running in docker container not function HOT 2
- is it possible to forward event to another URL by using slack_bolt ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt-python.