Merge commit 'f930f96d1b389e239d05e865afe4db339cb49cbf'

This commit is contained in:
burnettk 2022-10-19 15:17:20 -04:00
commit aa4d7d75d4
2 changed files with 16 additions and 1 deletions

View File

@ -86,3 +86,11 @@ span.bjs-crumb {
.markdown tbody tr:nth-of-type(odd) {
background: rgba(0,0,0,.05);
}
/* Json Web Form CSS Fix - Bootstrap now requries that each li have a "list-inline-item." Also have a PR
in on this with the react-jsonschema-form repo. This is just a patch fix to allow date inputs to layout a little more cleanly */
.list-inline>li {
display: inline-block;
padding-right: 5px;
padding-left: 5px;
}

View File

@ -3,6 +3,7 @@ import { Table } from 'react-bootstrap';
import ErrorContext from '../contexts/ErrorContext';
import { AuthenticationItem } from '../interfaces';
import HttpService from '../services/HttpService';
import UserService from '../services/UserService';
export default function AuthenticationList() {
const setErrorMessage = (useContext as any)(ErrorContext)[1];
@ -13,11 +14,13 @@ export default function AuthenticationList() {
const [connectProxyBaseUrl, setConnectProxyBaseUrl] = useState<string | null>(
null
);
const [redirectUrl, setRedirectUrl] = useState<string | null>(null);
useEffect(() => {
const processResult = (result: any) => {
setAuthenticationList(result.results);
setConnectProxyBaseUrl(result.connector_proxy_base_url);
setRedirectUrl(result.redirect_url);
};
HttpService.makeCallToBackend({
path: `/authentications`,
@ -34,7 +37,11 @@ export default function AuthenticationList() {
<td>
<a
data-qa="authentication-create-link"
href={`${connectProxyBaseUrl}/v1/auths/${row.id}`}
href={`${connectProxyBaseUrl}/v1/auth/${
row.id
}?redirect_url=${redirectUrl}/${
row.id
}?token=${UserService.getAuthToken()}`}
>
{row.id}
</a>