Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# oauth-setup-tutorial
Simple Example of Setting up OAuth in Intercom

Full details at https://developers.intercom.com/docs/setting-up-oauth
25 changes: 25 additions & 0 deletions intercom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<style>
img {
display: block;
margin: 0 auto;
}
.center {
text-align: center;
color: mediumblue;
}
#para1 {
text-align: center;
color: royalblue;
}
</style>
</head>
<body>

<h2 class="center"> Redirect the user to Intercom via this button</h2>
<p id="para1">This button allows the user to click through to Intercom to authorize the requested permissions</p>
<a href="https://app.intercom.io/oauth?client_id=<CLIENT_ID>&state=example"><img src="https://static.intercomassets.com/assets/oauth/primary-7edb2ebce84c088063f4b86049747c3a.png" srcset="https://static.intercomassets.com/assets/oauth/primary-7edb2ebce84c088063f4b86049747c3a.png 1x, https://static.intercomassets.com/assets/oauth/primary@2x-0d69ca2141dfdfa0535634610be80994.png 2x, https://static.intercomassets.com/assets/oauth/primary@3x-788ed3c44d63a6aec3927285e920f542.png 3x"/></a>
</body>
</html>