summaryrefslogtreecommitdiffstats
path: root/web/react/pages/authorize.jsx
blob: 71f17d007444ff99a3c8eb2f5e9fa651b6da96b7 (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.

import Authorize from '../components/authorize.jsx';

function setupAuthorizePage(props) {
    ReactDOM.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;