-
Notifications
You must be signed in to change notification settings - Fork 20
Subdomain for accessmanagement app #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
acn-dgopa
wants to merge
13
commits into
main
Choose a base branch
from
feature/accessmanagement-subdomain
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8fd8030
Add subdomain for accessmanagement bff
2e1ed61
Reverted appsettings and updated accessmanagement redirect url
f36b1d5
Reverted the localappurl for the docker settings
8f1cafd
uncommented domain variable in environment
ec73811
Merge branch 'main' into feature/accessmanagement-subdomain
acn-dgopa 141829e
Added hostname for am ui
562b743
Merge branch 'feature/accessmanagement-subdomain' of https://github.c…
e1b8208
Merge branch 'main' of https://github.com/Altinn/app-localtest into f…
allinox 9ba9110
added AMUI test domain to podman yml
allinox 9c94103
added testdata used for local running of access management frontend
allinox 35ac56d
pulled main
allinox 3c1a8af
pulled main - confirmed works with docker desktop
allinox 6317c65
ignore null on json serializations
allinox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,3 +18,4 @@ | |
| ## add it here | ||
|
|
||
| #TEST_DOMAIN=local.altinn.cloud | ||
| #AMUI_TEST_DOMAIN=am.ui.local.altinn.cloud | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -133,7 +133,7 @@ public async Task<ActionResult> LogInTestUser(string action, StartAppModel start | |||||
|
|
||||||
| if (startAppModel.AppPathSelection?.Equals("accessmanagement") == true) | ||||||
| { | ||||||
| return Redirect($"/accessmanagement/ui/given-api-delegations/overview"); | ||||||
| return Redirect($"http://{_generalSettings.AMHostname}/accessmanagement/ui/offered-api-delegations/overview"); | ||||||
| } | ||||||
|
|
||||||
| Application app = await _localApp.GetApplicationMetadata(startAppModel.AppPathSelection); | ||||||
|
|
@@ -320,7 +320,7 @@ private List<SelectListItem> GetAuthenticationLevels(int defaultAuthLevel) | |||||
| } | ||||||
|
|
||||||
| private async Task<List<SelectListItem>> GetAppsList() | ||||||
| { | ||||||
| { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| var applications = await _localApp.GetApplications(); | ||||||
| return applications.Select((kv) => GetSelectItem(kv.Value, kv.Key)).ToList(); | ||||||
| } | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "UserId": 20004938, | ||
| "UserName": "JarleErKul", | ||
| "PhoneNumber": "90001337", | ||
| "Email": "[email protected]", | ||
| "PartyId": 50019992, | ||
| "Party": { | ||
|
|
||
| }, | ||
| "UserType": 1, | ||
| "ProfileSettingPreference": { | ||
| "Language": "nb" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "UserId": 20020252, | ||
| "UserName": "Albatross4Ever", | ||
| "PhoneNumber": "90001337", | ||
| "Email": "[email protected]", | ||
| "PartyId": 50707389, | ||
| "Party": { | ||
|
|
||
| }, | ||
| "UserType": 1, | ||
| "ProfileSettingPreference": { | ||
| "Language": "nb" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "OrgNumber": "313523497", | ||
| "Name": "RAKRYGGET UNG TIGER AS", | ||
| "UnitType": "AS", | ||
| "TelephoneNumber": "12345678", | ||
| "MobileNumber": "92010000", | ||
| "FaxNumber": "92110000", | ||
| "EMailAddress": "[email protected]", | ||
| "InternetAddress": "http://vikesaa.no", | ||
| "MailingAddress": "Albatross Gate 1", | ||
| "MailingPostalCode": "0170", | ||
| "MailingPostalCity": "Moss", | ||
| "BusinessAddress": "Albatross Gate 1", | ||
| "BusinessPostalCode": "0170", | ||
| "BusinessPostalCity": "Moss" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
| "OrgNumber": "910510789", | ||
| "Name": "VIKESÅ OG ÅLVUNDFJORD", | ||
| "UnitType": "AS", | ||
| "TelephoneNumber": "12345678", | ||
| "MobileNumber": "92010000", | ||
| "FaxNumber": "92110000", | ||
| "EMailAddress": "[email protected]", | ||
| "InternetAddress": "http://vikesaa.no", | ||
| "MailingAddress": "Jarles Gate 1", | ||
| "MailingPostalCode": "0170", | ||
| "MailingPostalCity": "Oslo", | ||
| "BusinessAddress": "Jarles Gate 1", | ||
| "BusinessPostalCode": "0170", | ||
| "BusinessPostalCity": "By" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "partyId": "50019992", | ||
| "partyTypeName": 1, | ||
| "orgNumber": null, | ||
| "ssn": "09026102194", | ||
| "unitType": null, | ||
| "name": "JARLE GJERSTAD", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "partyId": "50067798", | ||
| "partyTypeName": 2, | ||
| "orgNumber": "910510789", | ||
| "ssn": null, | ||
| "unitType": "AS", | ||
| "name": "VIKESÅ OG ÅLVUNDFJORD", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "partyId": "50707389", | ||
| "partyTypeName": 1, | ||
| "orgNumber": null, | ||
| "ssn": "19895199357", | ||
| "unitType": null, | ||
| "name": "INTELLIGENT ALBATROSS", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "partyId": "51317934", | ||
| "partyTypeName": 2, | ||
| "orgNumber": "313523497", | ||
| "ssn": null, | ||
| "unitType": "AS", | ||
| "name": "RAKRYGGET UNG TIGER AS", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "SSN": "09026102194", | ||
| "Name": " JARLE GJERSTAD", | ||
| "FirstName": "Jarle", | ||
| "MiddleName": "", | ||
| "LastName": "Gjerstad", | ||
| "TelephoneNumber": "123456789", | ||
| "MobileNumber": "987654321", | ||
| "MailingAddress": "Hardangervegen 11", | ||
| "MailingPostalCode": "0157", | ||
| "MailingPostalCity": "Oslo", | ||
| "AddressMunicipalNumber": "0301", | ||
| "AddressMunicipalName": "Oslo", | ||
| "AddressStreetName": "Hardangervegen", | ||
| "AddressHouseNumber": "11", | ||
| "AddressHouseLetter": null, | ||
| "AddressPostalCode": "0151", | ||
| "AddressCity": "Oslo" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "SSN": "19895199357", | ||
| "Name": " INTELLIGENT ALBATROSS", | ||
| "FirstName": "Intelligent", | ||
| "MiddleName": "", | ||
| "LastName": "Albatross", | ||
| "TelephoneNumber": "123456789", | ||
| "MobileNumber": "987654321", | ||
| "MailingAddress": "Måkeøya 11", | ||
| "MailingPostalCode": "0157", | ||
| "MailingPostalCity": "Moss", | ||
| "AddressMunicipalNumber": "0301", | ||
| "AddressMunicipalName": "Moss", | ||
| "AddressStreetName": "Måkeøya", | ||
| "AddressHouseNumber": "11", | ||
| "AddressHouseLetter": null, | ||
| "AddressPostalCode": "0151", | ||
| "AddressCity": "Moss" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [ | ||
| { | ||
| "partyId": "50019992", | ||
| "partyTypeName": 1, | ||
| "ssn": "09026102194", | ||
| "unitType": null, | ||
| "name": "JARLE GJERSTAD", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| }, | ||
| { | ||
| "partyId": "50067798", | ||
| "partyTypeName": 2, | ||
| "OrgNumber": "910510789", | ||
| "unitType": "AS", | ||
| "name": " VIKESÅ OG ÅLVUNDFJORD", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| [ | ||
| { | ||
| "partyId": "50707389", | ||
| "partyTypeName": 1, | ||
| "ssn": "19895199357", | ||
| "unitType": null, | ||
| "name": "INTELLIGENT ALBATROSS", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| }, | ||
| { | ||
| "partyId": "51317934", | ||
| "partyTypeName": 2, | ||
| "OrgNumber": "313523497", | ||
| "unitType": "AS", | ||
| "name": "RAKRYGGET UNG TIGER AS", | ||
| "isDeleted": false, | ||
| "onlyHierarchyElementWithNoAccess": false, | ||
| "person": null, | ||
| "organisation": null, | ||
| "childParties": null | ||
| } | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
proxy_cookie_domainshould not be required here, and I’m not sure about thesub_filterThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about it either. @TheTechArch @tjololo Do you have any comments on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You dont need it. Same with Sub filter also I belive. Test without
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@allinox You can remove the sub_filter and proxy_cookie_domain here and test it out before committing the changes to this branch