Navigate to Setup | Create | Apps
20 |Scroll down to Connected Apps and click New
21 |Give your app a name, enter your email address and, optionally, set a logo, icon and description
22 |Scroll down to Web App Settings and check the Enable SAML checkbox
23 |Use the following Start Url: <%= url %>
24 |Use the following Entity Id: <%= url %>
25 |Use the following ACS URL: <%= url %>
26 |...and don't forget to authorize your Profile or Permission Set
27 | 28 | 29 | 30 |Click 'Manage' from the Connected App detail page and copy your Metadata URL
32 |Run this command using toolbelt:
33 |heroku config:set --app <%= app %> SAML_METADATA=<your metadata url>34 | 35 | 36 | 37 |
Click 'Manage' from the Connected App detail page and download your Connected App's SAML Metadata
39 |Base64 Encode the Metadata
40 |Run this command using toolbelt:
41 |heroku config:set --app <%= app %> SAML_METADATA=<your base64 encoded metadata>42 | 43 | 44 | -------------------------------------------------------------------------------- /src/main/webapp/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial; 3 | background-color: #F0F1F2; 4 | 5 | } 6 | 7 | .centered { 8 | position: fixed; 9 | top: 50%; 10 | left: 50%; 11 | margin-top: -100px; 12 | margin-left: -100px; 13 | width:3 60px; 14 | 15 | } 16 | 17 | .button { 18 | background-color:#2A94D6; 19 | -webkit-border-radius:4px; 20 | -moz-border-radius:4px; 21 | border-radius:4px; 22 | text-indent:0; 23 | border:1px solid #469df5; 24 | display:inline-block; 25 | color:#ffffff; 26 | font-family:Arial; 27 | font-size:15px; 28 | font-style:normal; 29 | height:50px; 30 | line-height:50px; 31 | text-decoration:none; 32 | text-align:center; 33 | padding-left:20px; 34 | padding-right:20px; 35 | width:200px; 36 | 37 | } 38 | 39 | .inputbox { 40 | 41 | padding:10px; 42 | font-size:16px; 43 | width:300px; 44 | 45 | } 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/main/webapp/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salesforceidentity/heroku-identity-java/1cc22cfe190aa74e85750f5f16fc66a3c8592b12/src/main/webapp/img/logo.png -------------------------------------------------------------------------------- /src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.salesforce.saml.Identity,com.salesforce.util.Bag,java.util.Set,java.util.Iterator,java.util.ArrayList" %> 2 | <% 3 | Identity identity = null; 4 | Cookie[] cookies = request.getCookies(); 5 | if (cookies != null) { 6 | for (Cookie cookie : cookies) { 7 | if (cookie.getName().equals("IDENTITY")) { 8 | identity = new Identity(cookie.getValue(),true); 9 | } 10 | } 11 | } 12 | 13 | %> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | <% if (identity != null ) { %> 24 |
<%= key %>: | <%
34 | ArrayList <% 37 | } 38 | %> |