Skip to content

Device Flow: verification_uri vs verification_url for Google. #666

Closed
@nikolay-turpitko

Description

@nikolay-turpitko

I'm checking newly implemented Device Flow and I've found a minor issue.
Here:

type DeviceAuthResponse struct {
   VerificationURI string `json:"verification_uri"` 
}

Verefication URI is decoded from JSON field, named according RFC.

But here, Google uses verification_url name. Which is, obviously, contradicts spec, but it would be nice to be able to somehow obtain it anyway.

Would it be possible to add raw data field to DeviceAuthResponse, or map with all received fields, or map with additional (not parsed) fields from the response JSON?

Metadata

Metadata

Assignees

No one assigned

    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