Skip to Main Content
Feature Request FR-3287
Product Area APIs
Status CLOSED

2 Voters

Provide RSA sign procedure specifying Web Credential of newly added Key Pair type

yuji nakakoshi Internal
· Jul 28 2023

Idea Summary

Many REST APIs requires RS256 for JWT signatures. Recently, Oracle APEX introduces type Key Pair to store Public/Private key as Web Credentials.

However, there is no way to use it to generate signature to create RS256 JWT at this moment.

If sign procedure is provided, RS256 JWT can be generated without security concern of Private Key.

Use Case

Some Google API requires RS256 JWT (Service Account) to generate access token. Not only Google, many services requires RS256 JWT or RSA signature to access their service.

Preferred Solution (Optional)

At a minimum, a wrapper of DBMS_CRYPTO.SIGN like below would work.

APEX_CRYPTO.SIGN(
    src IN RAW,
    p_credential_static_id in varchar2,
    pubkey_alg IN BINARY_INTEGER,
    sign_alg IN BINARY_INTEGER)
RETURN RAW;
This idea has been closed due to the lack of community activity during the period since it was submitted.