20240315 - Social 로그인 구글 + 기본 로그인 혼합

구글 API 콘솔에서 OAuth 동의화면 설정

https://console.cloud.google.com/apis




구글 API 콘솔에서 사용자 인증 정보 설정

https://apex.oracle.com/pls/apex/apex_authentication.callback


APEX에서 Web Credential 생성


Authentication Scheme 생성



** 다른 Authentication Scheme과 혼합해야 하는 경우

양쪽 모두 Authentication Scheme - Login Processing - Switch in Session : Enabled

로그인 페이지에서 Redirection 버튼을 통해 APEX_AUTHENTICATION=GAuthS 로 Request 처리







참고

https://console.cloud.google.com/apis

How To Authenticate APEX Application Using Google? (Doc ID 2430891.1)

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=284767079108674&id=2430891.1&_afrWindowMode=0&_adf.ctrl-state=3xll7mvfo_53

https://developers.google.com/identity/gsi/web/guides/migration?hl=ko#redirect-mode_1

https://blog.cloudnueva.com/setting-an-apex-authentication-scheme-at-run-time

https://dgielis.blogspot.com/2018/06/facebook-google-and-custom.html

20240309 - STANDARD_HASH

해쉬 키 생성을 위해 테이블 항목 추가


alter table "TBLA" add ("HASH_KEY" VARCHAR2(4000) GENERATED ALWAYS AS (standard_hash(po_id)));


테이블 명세에 보면 자동 생성하면서 RAWTOHEX로 변형


  "HASH_KEY" VARCHAR2(4000) GENERATED ALWAYS AS (RAWTOHEX(STANDARD_HASH("PO_ID"))) VIRTUAL ,


그래서 이렇게 Query하면


select hash_key from TBLA where po_id = 26352
union all
select standard_hash(26352) from dual

Error at line 1/8: ORA-01790: expression must have same datatype as corresponding expression


결론은


select hash_key from TBLA where po_id = 26352
union all
select RAWTOHEX(standard_hash(26352)) from dual

189B82A617C42996E6AA4D5F5C291DBA18402F19
189B82A617C42996E6AA4D5F5C291DBA18402F19


성능대비 복잡도를 고려한 효율성을 따진다면 SAH-1 (다른 사이트 결과 참고)




참고

https://mikesmithers.wordpress.com/2024/01/04/using-standard_hash-to-generate-synthetic-key-values/

https://asktom.oracle.com/ords/f?p=100:11:::::P11_QUESTION_ID:9541066400346811041

20250202 - IG 다운로드 버튼 바로 보이기

JS initialization Code : function (config) {     var $ = apex.jQuery,         toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),  ...