Skip to content

new: [OIDC] OIDC_LOGIN_TEXT to customise the login button label#422

Open
cln-io wants to merge 1 commit into
MISP:masterfrom
cln-io:feature/oidc-login-button-text
Open

new: [OIDC] OIDC_LOGIN_TEXT to customise the login button label#422
cln-io wants to merge 1 commit into
MISP:masterfrom
cln-io:feature/oidc-login-button-text

Conversation

@cln-io
Copy link
Copy Markdown

@cln-io cln-io commented Jun 5, 2026

What does it do?

Adds an optional OIDC_LOGIN_TEXT environment variable that sets the OidcAuth.login_button_text MISP config value, customising the label of the OIDC login button shown on the login page when OIDC_MIXEDAUTH is enabled.

Companion to MISP/MISP#10825, which adds the OidcAuth.login_button_text setting read by app/View/Users/login.ctp (defaulting to "Login with OIDC"). This PR is a no-op until that change is merged and a new misp-core image is built.

Implemented in set_up_oidc() following the exact same pattern as the other OIDC_* variables (e.g. OIDC_SCOPES, OIDC_LOGOUT_URL): only applied when set, so behaviour is unchanged by default.

Changes:

  • core/files/configure_misp.sh — write OidcAuth.login_button_text from OIDC_LOGIN_TEXT when the variable is set.
  • template.env — document the new (commented) variable next to OIDC_MIXEDAUTH.

Questions

  • Does it require a DB change? — No. Writes an OidcAuth.* value into config.php via modify_config.php, like the other OIDC settings.
  • Are you using it in production? — Not yet (new feature; default behaviour unchanged).
  • Does it require a change in the API (PyMISP for example)? — No.

Depends on: MISP/MISP#10825

@cln-io
Copy link
Copy Markdown
Author

cln-io commented Jun 5, 2026

basically all work was done by claude

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3814682fed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread template.env
@cln-io cln-io force-pushed the feature/oidc-login-button-text branch from 3814682 to 8215b59 Compare June 5, 2026 17:56
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8215b5961a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread core/files/configure_misp.sh Outdated
@cln-io cln-io force-pushed the feature/oidc-login-button-text branch from 8215b59 to ac9b9a5 Compare June 5, 2026 18:24
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac9b9a5a02

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread core/files/configure_misp.sh
Add an optional OIDC_LOGIN_TEXT environment variable that sets the
OidcAuth.login_button_text MISP config value, used to customise the
label of the OIDC login button shown when OIDC_MIXEDAUTH is enabled.

Only applied when set, so behaviour is unchanged by default. Follows
the same pattern as the other OIDC_* variables in set_up_oidc().

Requires the companion MISP change that reads OidcAuth.login_button_text
in app/View/Users/login.ctp (defaults to "Login with OIDC").
@cln-io cln-io force-pushed the feature/oidc-login-button-text branch from ac9b9a5 to 9a08895 Compare June 5, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant