Skip to content

Commit

Permalink
feat: OAuth Auth link for Blackboard Self-Service (#659)
Browse files Browse the repository at this point in the history
ENT-4389
  • Loading branch information
johnnagro committed Dec 13, 2021
1 parent 43d1ce8 commit 0949290
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import React from 'react';
import PropTypes from 'prop-types';
import isEmpty from 'lodash/isEmpty';
import {
ValidationFormGroup, Input, StatefulButton, Icon,
ValidationFormGroup,
Input,
StatefulButton,
Icon,
Hyperlink,
} from '@edx/paragon';
import { snakeCaseFormData } from '../../utils';
import LmsApiService from '../../data/services/LmsApiService';
Expand Down Expand Up @@ -212,6 +216,21 @@ class BlackboardIntegrationConfigForm extends React.Component {
</div>
</div>

<div className="row">
<div className="col col-4">
{config?.oauthAuthorizationUrl && (
<div className="form-group align-items-left">
<Hyperlink destination={config ? config.oauthAuthorizationUrl : null} target="_blank">
Authorize
</Hyperlink>
<p className="small">
OAuth Authorization Link. Will be available once Base URL and Client ID are supplied.
</p>
</div>
)}
</div>
</div>

<div className="row">
<div className="col col-2">
<StatefulButton
Expand Down Expand Up @@ -258,6 +277,7 @@ BlackboardIntegrationConfigForm.propTypes = {
refreshToken: PropTypes.string,
clientId: PropTypes.string,
clientSecret: PropTypes.string,
oauthAuthorizationUrl: PropTypes.string,
}),
enterpriseId: PropTypes.string,
};
Expand Down

0 comments on commit 0949290

Please sign in to comment.