RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2111393 - authenticating against external IdP services okta (native app) with OAuth client secret failed
Summary: authenticating against external IdP services okta (native app) with OAuth cli...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: sssd
Version: 8.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Sumit Bose
QA Contact: Filip Dvorak
URL:
Whiteboard: sync-to-jira
Depends On: 2111388
Blocks: 2152883
TreeView+ depends on / blocked
 
Reported: 2022-07-27 08:33 UTC by Filip Dvorak
Modified: 2023-05-16 11:11 UTC (History)
10 users (show)

Fixed In Version: sssd-2.8.1-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2111388
: 2152883 (view as bug list)
Environment:
Last Closed: 2023-05-16 09:07:56 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 6146 0 None closed oidc_child issues found in FreeIPA idp testing 2022-09-26 19:45:11 UTC
Github SSSD sssd pull 6311 0 None closed Fixes for oidc_child 2022-09-26 19:45:12 UTC
Red Hat Issue Tracker RHELPLAN-129219 0 None None None 2022-07-27 09:35:11 UTC
Red Hat Issue Tracker SSSD-4900 0 None None None 2022-08-11 14:14:49 UTC
Red Hat Product Errata RHBA-2023:2986 0 None None None 2023-05-16 09:08:23 UTC

Description Filip Dvorak 2022-07-27 08:33:59 UTC
+++ This bug was initially created as a clone of Bug #2111388 +++

Description of problem:
Authentication agains external provider Okta failed when the OAuth client secret was used (ipa idp-add --secret)

Version-Release number of selected component (if applicable):

# rpm -q libverto krb5-server ipa-server sssd-idp
RHEL-8.7.0-20220722.0
libverto-0.3.2-2.el8.x86_64
krb5-server-1.18.2-21.el8.x86_64
ipa-server-4.9.10-4.module+el8.7.0+15926+daa9f08b.x86_64
sssd-idp-2.7.3-1.el8.x86_64


Steps to Reproduce:
1.configuration of ipa-server:
hostnamectl set-hostname master1.testrelm.test
dnf install -y ipa-server-dns
ipa-server-install -a Secret123 -p Secret123 --setup-dns --auto-forwarders -n testrelm.test -U -r TESTRELM.TEST --no-dnssec-validation

add user for okta idp
echo Secret123 | kinit admin
ipa idp-add oktatest --client-id=<client_id> --provider=okta --base-url=trial-8739330.okta.com --secret
ipa user-add oktausertest --first=okta --last=userokta --user-auth-type=idp --idp-user-id="fdvorak" --idp=oktatest
Note: client ID and client secret are from okta web application

The okta native application has the following settings:
Client authentication: Client secret
Application type: Native
Grant type: Authorization Code, Interaction Code, Device authorization
Immediate app access with Federation Broker Mode: Enabled

2. kinit -n -c ./ccache

Actual results:
# kinit -T ./ccache oktausertest
kinit: Pre-authentication failed: Invalid argument while getting initial credentials

Expected results:
"kinit -T <ccache> oktausertest" should pass

Additional info:
The same scenario without secret (Client authentication:none in okta native application) works.
Logs were attached.

Comment 2 Alexander Bokovoy 2022-07-27 08:47:23 UTC
downstream issue for https://github.com/SSSD/sssd/issues/6146

Comment 10 Alexey Tikhonov 2022-09-15 18:20:38 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6311

Comment 11 Alexey Tikhonov 2022-09-16 13:43:32 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6311

* `master`
    * 1a475e0c537c905c80406ceb88c7b34e6400bc40 - oidc_child: add --client-secret-stdin option
    * 5ed7670766483040211713f8182510775c76b962 - oidc_child: increase wait interval by 5s if 'slow_down' is returned
    * a4d4617efeff871c5d2762e35f9dec57fa24fb1a - oidc_child: use client secret if available to get device code
    * 12d5c6344ee304c1f3bc155a76ab37fcd20e78cb - oidc_child: escape scopes

Comment 28 errata-xmlrpc 2023-05-16 09:07:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sssd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2986


Note You need to log in before you can comment on or make changes to this bug.