summaryrefslogtreecommitdiffstats
path: root/web/react/pages/authorize.jsx
blob: 1338e6cc28bcec2aed52f3c6c135909973abde8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

var Authorize = require('../components/authorize.jsx');

function setupAuthorizePage(props) {
    React.render(
        <Authorize
            teamName={props.TeamName}
            appName={props.AppName}
            responseType={props.ResponseType}
            clientId={props.ClientId}
            redirectUri={props.RedirectUri}
            scope={props.Scope}
            state={props.State}
        />,
        document.getElementById('authorize')
    );
}

global.window.setup_authorize_page = setupAuthorizePage;