Skip to main content Link Search Menu Expand Document (external link)

This flow, recommended by the plugin, utilizes the system’s default browser to run the OpenID or OAuth2 flow. This approach allows your game to trigger the opening of the browser as a separate application, where the user can complete the necessary steps. Once complete, the browser will send back the required information to the game. This flow provides a seamless user experience and ensures the security of the user’s information.

sequenceDiagram
    UE Game ->> UE5 OpenID Client: Login
    UE5 OpenID Client ->> UE5 OpenID Client: Open Login URL in embedded browser
    UE5 OpenID Client ->>+ UE5 OpenID Client: Start server at localhost#58;serverPort
    Browser ->> EndUser: OpenID Flow
    EndUser ->> Browser: OpenID Flow
    Browser ->> UE5 OpenID Client: Token + ID_Token via http:#47;#47;localhost:serverPort#47;serverCallback
    UE5 OpenID Client ->> UE5 OpenID Client: Stop Server
    deactivate UE5 OpenID Client
    UE5 OpenID Client ->> UE5 OpenID Client: Add Token to all future requests made via HttpModule
    UE5 OpenID Client ->> UE Game: User

To use this flow, simply call the login method as in the following example. Keep in mind to replace the Clinet ID with the proper value. For more information refer to providers. The Get subsystem node refers to OAuth++ Subsystem.