This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select * | |
| from | |
| ( | |
| select 1 id, | |
| 'Tom Hanks' text, | |
| 'male' gender | |
| from dual | |
| union all | |
| select 2 id, | |
| 'Bill Murray' text, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( document ).ajaxSend(function( event, jqxhr, settings ) { | |
| // check if the request url is "wwv_flow.ajax" and contains data | |
| if(settings.url == "wwv_flow.ajax" && settings.data) { | |
| try { | |
| // extract the JSON payload from the request url | |
| var jsonPayloadMatch = settings.data.match(/(?<=p_json\=).*/); | |
| if(jsonPayloadMatch && jsonPayloadMatch.length > 0) { | |
| // decode and unescape URL payload | |
| // and parse JSON | |
| var json = JSON.parse(unescape(decodeURI(jsonPayloadMatch[0]))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- alter session set container=XEPDB1; -- select container with Oracle APEX installation | |
| exec apex_instance_admin.set_parameter('APEX_BUILDER_AUTHENTICATION','APEX'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| procedure post_auth is | |
| l_count number; | |
| l_roles varchar2(1024); | |
| begin | |
| :G_AUTH_SCHEME := 'IdentityServer'; | |
| l_roles := ''; | |
| IF apex_json.does_exist(p_path => 'role') THEN | |
| BEGIN | |
| l_count := apex_json.get_count(p_path=>'role'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // clients want to access resources (aka scopes) | |
| public static IEnumerable<Client> GetClients() | |
| { | |
| // client credentials client | |
| return new List<Client> | |
| { | |
| // OpenID Connect | |
| new Client | |
| { | |
| ClientId = "PLAYGROUND", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // ------------------------------------------------------------------------- | |
| // Active directory | |
| // ------------------------------------------------------------------------- | |
| "ldapActiveDirectory": { | |
| "url": "sso.rammelhof.at", | |
| "port": 389, | |
| "ssl": false, | |
| "bindDn": "CN=svcLdap,OU=Services,DC=dev,DC=local", | |
| "bindCredentials": "!password!", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true /commit:apphost |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <httpRedirect enabled="false" destination="http://localhost:8080" /> | |
| <rewrite> | |
| <rules> | |
| <clear /> | |
| <rule name="https" stopProcessing="true"> | |
| <match url="(.*)" /> | |
| <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $( document ).ajaxSend(function( event, jqxhr, settings ) { | |
| // check if the request url is "wwv_flow.ajax" and contains data | |
| if(settings.url == "wwv_flow.ajax" && settings.data) { | |
| try { | |
| // extract the JSON payload from the request url | |
| var jsonPayloadMatch = settings.data.match(/(?<=p_json\=).*/) | |
| if(jsonPayloadMatch && jsonPayloadMatch.length > 0) { | |
| // decode and unescape URL payload | |
| // and parse JSON | |
| var json = JSON.parse(unescape(decodeURI(jsonPayloadMatch[0]))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select * | |
| from | |
| ( | |
| select 1 id, | |
| 'Tom Hanks' text, | |
| 'male' gender | |
| from dual | |
| union all | |
| select 2 id, | |
| 'Bill Murray' text, |