{"id":2821,"date":"2015-12-29T11:39:19","date_gmt":"2015-12-29T10:39:19","guid":{"rendered":"http:\/\/iamwcew.fr.oracle.com\/blog\/?p=2821"},"modified":"2015-12-29T11:39:19","modified_gmt":"2015-12-29T10:39:19","slug":"oracle-sites-cloud-service-adding-authentication-to-a-site","status":"publish","type":"post","link":"https:\/\/gpmfactory.com\/index.php\/2015\/12\/29\/oracle-sites-cloud-service-adding-authentication-to-a-site\/","title":{"rendered":"Oracle Sites Cloud Service &#8211; Adding authentication to a site"},"content":{"rendered":"<p>With Oracle Sites Cloud Services, access to any site is Public, by default. If you have to add authentication, there is a very simple way to achieve it:<\/p>\n<p>First, we assume that authentication will be against the existing Identity Domain provided with the tenant.<!--more--><\/p>\n<p>In a dedicated page of a site, called <i>Login<\/i> for instance, we add an <b>App<\/b> component which embeds an URL to any folder of Documents Cloud Service.<br \/>\nie:<br \/>\nApp URL =<br \/>\nhttps:\/\/documents.XX.oraclecloud.com\/documents\/<b>embed<\/b>\/home\/nameasc<\/p>\n<p>Note that the URL will be called with the <a href=\"https:\/\/docs.oracle.com\/cloud\/latest\/documentcs_welcome\/WCCCD\/GUID-3AB30A35-F0E4-4967-92C8-159FC5AA3844.htm#WCCCD3791\" target=\"_blank\">EMBED keyword<\/a>.<br \/>\nThen we add the App component is a region, and \u00a0we setup a height=1 and a width=1 (almost invisible).<br \/>\nThat&rsquo;s all.<br \/>\nEach time a user will navigate to this custom \u00a0<i>Login<\/i> Page, and if the user is not yet authenticated, a new page will splash on the screen, asking for credentials. Once login and pasword are provided by the user, the page disapears and return to custom Login page.<\/p>\n<p>Prerequisites: <a href=\"https:\/\/docs.oracle.com\/cloud\/latest\/documentcs_welcome\/WCCCD\/GUID-3AB30A35-F0E4-4967-92C8-159FC5AA3844.htm#WCCCD3791\" target=\"_blank\">Authorize Documents Cloud Service to embed Folder in an iframe<\/a> and add the domain to the granted list. (In Administration menu)<\/p>\n<p>Other advantages: If you have a subscription to Database Service in the same Identity Domain, the method described above will be a good way to introduce an authentication to an APEX component.<br \/>\nCf<a href=\"http:\/\/pmonaco.blogspot.co.uk\/2015\/12\/oracle-sites-cloud-service-apps.html\" target=\"_blank\"> my other post related to Apps<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Oracle Sites Cloud Services, access to any site is Public, by default. If you have to add authentication, there is a very simple&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,10,11],"tags":[],"ppma_author":[150],"class_list":["post-2821","post","type-post","status-publish","format-standard","hentry","category-demo-2","category-notes","category-paas"],"authors":[{"term_id":150,"user_id":1,"is_guest":0,"slug":"admin8700","display_name":"Patrick","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/209d5ed69b74d288390621ab4c1d3773?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/2821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/comments?post=2821"}],"version-history":[{"count":0,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/2821\/revisions"}],"wp:attachment":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/media?parent=2821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/categories?post=2821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/tags?post=2821"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/ppma_author?post=2821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}