Skip to content

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

@jujur10

Description

@jujur10

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
                    }
                    ...

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