11# # -- Okta --
22resource "okta_app_signon_policy" "only_1fa" {
3+ provider = okta. business
34 name = " Replate Org 1FA policy"
45 description = " Authentication Policy to be used simple apps."
56}
67
78resource "okta_app_signon_policy_rule" "only_1fa_rule" {
9+ provider = okta. business
810 policy_id = okta_app_signon_policy. only_1fa . id
911 name = " Password only"
1012 factor_mode = " 1FA"
@@ -23,12 +25,14 @@ resource "okta_app_signon_policy_rule" "only_1fa_rule" {
2325# Okta Group for Federated Supplier employees
2426# VISIT https://amin-admin.okta.com/admin/group/00g7583ngaQ9Nurc33l7
2527resource "okta_group" "supplier_workforce" {
28+ provider = okta. business
2629 name = " Supplier Workforce"
2730 description = " Group for all Supplier workforce employees"
2831}
2932
3033# RWA Application for Auth0 integration
3134resource "okta_app_oauth" "replate-rwa" {
35+ provider = okta. business
3236 label = " Replate Business Federation"
3337 type = " web"
3438 grant_types = [" authorization_code" ]
@@ -46,6 +50,7 @@ resource "okta_app_oauth" "replate-rwa" {
4650}
4751
4852resource "okta_app_group_assignments" "replate-rwa-group-assignment" {
53+ provider = okta. business
4954 app_id = okta_app_oauth. replate-rwa . id
5055 group {
5156 id = okta_group. supplier_workforce . id
@@ -54,6 +59,7 @@ resource "okta_app_group_assignments" "replate-rwa-group-assignment" {
5459
5560# Sample users for the workforce group
5661resource "okta_user" "supplier-io_admin" {
62+ provider = okta. business
5763 first_name = " Adam"
5864 last_name = " Supplier"
5965 login = " admin@supplier.io"
@@ -63,6 +69,7 @@ resource "okta_user" "supplier-io_admin" {
6369}
6470
6571resource "okta_user" "supplier-io_member" {
72+ provider = okta. business
6673 first_name = " Maria"
6774 last_name = " Supplier"
6875 login = " member@supplier.io"
@@ -74,6 +81,7 @@ resource "okta_user" "supplier-io_member" {
7481
7582# Assign users to the workforce group
7683resource "okta_group_memberships" "supplier-io_members" {
84+ provider = okta. business
7785 group_id = okta_group. supplier_workforce . id
7886 users = [
7987 okta_user . supplier-io_admin . id ,
0 commit comments