Skip to content

"headers" parameter for openAuth function has no effect. #113

Description

@AnabolicRoo

The header is not modified.
Code exemple:

// Function used to execute action when the provider button is clicked.
    async function onNewConnectionClick() : Promise<void> {
        const url = `${BASE_API_URL}/protected/oauth2/${$selectedProvider}/login?redirect_url=${APP_URL}`
        const cookie = retrieveConnectionCookie()
        if (cookie == null) {
            navigateTo(PageList[PageIndex.LOGIN])
            return
        }
        try {
            if (await InAppBrowser.isAvailable()) {
                InAppBrowser.openAuth(url, APP_URL, {
                    ephemeralWebSession: false,
                    showTitle: false,
                    enableUrlBarHiding: true,
                    enableDefaultShare: false,
                    headers: {
                        'Cookie': 'session_id=' + cookie.sessionId
                    }
                    ...

Activity

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

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