Skip to content

Add support for OpenID Connect in WebSocket Proxy #20236

Closed

Description

@michaeljmarshall

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

With #19849, we have support for OpenID Connect Authentication. That feature is not yet available in the WebSocket proxy because PIP 97 #12105 has not yet been implemented for the WebSocket Proxy's code path.

Solution

Implement PIP 97 #12105 in the websocket proxy. Here is the problematic code:

if (authenticationState != null) {
authRole = service.getAuthenticationService()
.authenticateHttpRequest(request, authenticationState.getAuthDataSource());
} else {
authRole = service.getAuthenticationService().authenticateHttpRequest(request);
}

Alternatives

No response

Anything else?

I plan on working to implement this soon.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/enhancement
    on May 5, 2023
  2. michaeljmarshall commented on May 5, 2023

    @michaeljmarshall
    MemberAuthor

    The error presents itself as:

    2023-05-05T19:33:11,659+0000 [pulsar-websocket-web-1-7] DEBUG org.apache.pulsar.broker.authentication.AuthenticationService - Authentication failed for provider token: Not supported
    javax.naming.AuthenticationException: Not supported

  3. added 2 commits that reference this issue on May 8, 2023
    03dc3db
    02d6c16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/authntype/enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions