Forge Custom UI - Email API / Automatic Log In

Hey there, I’ve been developing a Forge App using a Custom UI. Now I’m looking to use the rest api to access the users email for account linking and syncing with another system. Is there a way for me to get access to the Email API?

UPDATE: To be more specific, I’m trying to have the user automatically logged into my application with their Jira/Atlassian credentials. What’s the best approach for me to achieve this functionality? Would I need to use JWT tokens, OAuth?

Hello @gustavo2

The Email API supports access by Connect apps, but not Forge apps.

Refer to this thread where the topic has been previously discussed.

1 Like

Thanks for the reply. Another question, I’m trying to have the user automatically logged into my application with their Jira/Atlassian credentials. What’s the best approach for me to achieve this functionality?

Hello @gustavo2

If my answer to your original question about the email REST API was correct, can you please mark it as such.

Please don’t amend your original question and ‘piggyback’ new topics. If you have a different question about “automatic logins” with OAuth / Tokens, then please start a new question.

PS. Broadly speaking, there is no ‘automatic’ login. Your app must get either the logged in user’s consent or the system admin’s consent, then you can receive your OAuth token. Once you have your token, your app can work within the permission scopes in your manifest.yml, and act as the user… so you never need their email address or access to their credentials.

1 Like

Hello @sunnyape ,

Thank you for the replies and for the information on proper forum etiquette.

I do appreciate the information you have given, I’ll open up a new question. Thanks!

1 Like