Skip to content

Getting access to HTTP header fields from the UserProfileDelegate update method #41

@crspybits

Description

@crspybits

I'm using your CredentialsGoogleToken to sign in a user on a server, where the user signed in originally on an iOS mobile app using Google Sign in. Because my server operates somewhat independently of the mobile app, it's important for me to pass along a Google Sign in server auth code (https://developers.google.com/identity/sign-in/web/server-side-flow). This is used on the server to obtain a server-side refresh token, in addition to obtaining an access token. I think it makes sense for me to pass that server auth code up to the server as a HTTP header-- since its authentication related.

Thus, it would seem to make sense to add a parameter to your UserProfileDelegate update method that provides access to the HTTP headers. E.g.,

func update(userProfile: UserProfile, from dictionary: [String:Any] andHeaders:Headers)

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