mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov-ui.git
synced 2025-10-30 18:17:46 +00:00
[WIFI-13031] Add support for radius endpoints
Signed-off-by: Charles <charles.bourque96@gmail.com>
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "wlan-cloud-owprov-ui",
|
"name": "wlan-cloud-owprov-ui",
|
||||||
"version": "2.11.0(57)",
|
"version": "2.11.0(59)",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "wlan-cloud-owprov-ui",
|
"name": "wlan-cloud-owprov-ui",
|
||||||
"version": "2.11.0(57)",
|
"version": "2.11.0(59)",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/anatomy": "^2.1.1",
|
"@chakra-ui/anatomy": "^2.1.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "wlan-cloud-owprov-ui",
|
"name": "wlan-cloud-owprov-ui",
|
||||||
"version": "2.11.0(57)",
|
"version": "2.11.0(59)",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.tsx",
|
"main": "index.tsx",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -987,7 +987,7 @@
|
|||||||
"city": "City",
|
"city": "City",
|
||||||
"common_name": "Common Name",
|
"common_name": "Common Name",
|
||||||
"country": "Country",
|
"country": "Country",
|
||||||
"global_reach": "Global Reach",
|
"global_reach": "GlobalReach",
|
||||||
"global_reach_account_id": " Account ID",
|
"global_reach_account_id": " Account ID",
|
||||||
"invalid_certificate": "Invalid certificate",
|
"invalid_certificate": "Invalid certificate",
|
||||||
"invalid_key": "Invalid private key",
|
"invalid_key": "Invalid private key",
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const CreateResourceModal: React.FC<Props> = ({ refresh, entityId, isVenue = fal
|
|||||||
value="interface.ssid.openroaming"
|
value="interface.ssid.openroaming"
|
||||||
hidden={!getRadiusEndpoints.data || getRadiusEndpoints.data.length === 0}
|
hidden={!getRadiusEndpoints.data || getRadiusEndpoints.data.length === 0}
|
||||||
>
|
>
|
||||||
Open Roaming SSID
|
OpenRoaming SSID
|
||||||
</option>
|
</option>
|
||||||
<option value="interface.ssid.radius">interface.ssid.radius</option>
|
<option value="interface.ssid.radius">interface.ssid.radius</option>
|
||||||
<option value="interface.tunnel">interface.tunnel</option>
|
<option value="interface.tunnel">interface.tunnel</option>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export type RadiusEndpointServer = {
|
|||||||
|
|
||||||
export type RadsecServer = {
|
export type RadsecServer = {
|
||||||
/**
|
/**
|
||||||
* It should be the ID of a google orion account OR the certificate ID of the global reach account
|
* It should be the ID of a google orion account OR the certificate ID of the GlobalReach account
|
||||||
* If not empty, only Weight needs to be populated
|
* If not empty, only Weight needs to be populated
|
||||||
* If empty, all fields need to be populated
|
* If empty, all fields need to be populated
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const OpenRoamingPage = () => {
|
|||||||
return (
|
return (
|
||||||
<Tabs>
|
<Tabs>
|
||||||
<TabList>
|
<TabList>
|
||||||
<Tab _selected={tabStyle}>Global Reach</Tab>
|
<Tab _selected={tabStyle}>GlobalReach</Tab>
|
||||||
<Tab _selected={tabStyle}>Google Orion</Tab>
|
<Tab _selected={tabStyle}>Google Orion</Tab>
|
||||||
</TabList>
|
</TabList>
|
||||||
<TabPanels>
|
<TabPanels>
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ const CreateRadiusEndpointDetailsStep = ({ formRef, finishStep, orionAccounts, g
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (globalReachAccounts.length > 0) {
|
if (globalReachAccounts.length > 0) {
|
||||||
options.push({ value: 'globalreach', label: 'Global Reach' });
|
options.push({ value: 'globalreach', label: 'GlobalReach' });
|
||||||
}
|
}
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ const CreateRadiusEndpointGlobalReachStep = ({ formRef, finishStep, accounts }:
|
|||||||
{({ isSubmitting }) => (
|
{({ isSubmitting }) => (
|
||||||
<Box>
|
<Box>
|
||||||
<Heading mb={4} size="md" textDecoration="underline">
|
<Heading mb={4} size="md" textDecoration="underline">
|
||||||
What Global Reach account would like to use?
|
What GlobalReach account would like to use?
|
||||||
</Heading>
|
</Heading>
|
||||||
<Select
|
<Select
|
||||||
mb={2}
|
mb={2}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { RadiusEndpoint } from 'hooks/Network/RadiusEndpoints';
|
|||||||
|
|
||||||
const prettyTypes = {
|
const prettyTypes = {
|
||||||
orion: 'Google Orion',
|
orion: 'Google Orion',
|
||||||
globalreach: 'Global Reach',
|
globalreach: 'GlobalReach',
|
||||||
generic: 'Generic',
|
generic: 'Generic',
|
||||||
radsec: 'RadSec',
|
radsec: 'RadSec',
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const secondColProps = {} as const;
|
|||||||
|
|
||||||
const prettyTypes = {
|
const prettyTypes = {
|
||||||
orion: 'Google Orion',
|
orion: 'Google Orion',
|
||||||
globalreach: 'Global Reach',
|
globalreach: 'GlobalReach',
|
||||||
generic: 'Generic',
|
generic: 'Generic',
|
||||||
radsec: 'RadSec',
|
radsec: 'RadSec',
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const GlobalReachEndpointDetails = ({ endpoint }: Props) => {
|
|||||||
return (
|
return (
|
||||||
<Box mt={2}>
|
<Box mt={2}>
|
||||||
<Heading size="md" textDecoration="underline">
|
<Heading size="md" textDecoration="underline">
|
||||||
Global Reach Certificate
|
GlobalReach Certificate
|
||||||
</Heading>{' '}
|
</Heading>{' '}
|
||||||
{certificate ? (
|
{certificate ? (
|
||||||
<Box>
|
<Box>
|
||||||
|
|||||||
@@ -128,8 +128,8 @@ const routes: Route[] = [
|
|||||||
id: 'system-globalroaming',
|
id: 'system-globalroaming',
|
||||||
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
|
authorized: ['root', 'partner', 'admin', 'csr', 'system'],
|
||||||
path: '/openRoaming',
|
path: '/openRoaming',
|
||||||
name: 'RAW-Open Roaming',
|
name: 'RAW-OpenRoaming',
|
||||||
label: 'Open Roaming',
|
label: 'OpenRoaming',
|
||||||
component: OpenRoamingPage,
|
component: OpenRoamingPage,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user