Skip to content

Support non-tls providers for the oauth command http:// #1247

Open

Description

@aucampia

I would like to use step oauth with a local test instance of keycloak, but I can't because it only accepts https:// urls:

if o.Provider != "google" && o.Provider != "github" && !strings.HasPrefix(o.Provider, "https://") {

The error it gives when I try is also misleading:

$ step oauth --client-id=test-client-000 \
>   --provider=http://localhost:8080/realms/test/.well-known/openid-configuration
use a valid provider: google or github

Activity

  1. hslatman commented on Jul 29, 2024

    @hslatman
    Member

    Hey @aucampia,

    A similar issue was opened recently, and there's some work in progress to make a connection work to an OAuth endpoint with a certificate issued by step-ca itself: smallstep/certificates#1940. That won't make it work for HTTP, but it does allow you to configure your local Keycloak if you provide it with a cert from step-ca itself.

    I'll keep the issue open, so that we can internally discuss if we want to support plain HTTP too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions