# Is there any way that I can use my own info.plist instead of Okta plist

**URL:** <https://devforum.okta.com/t/is-there-any-way-that-i-can-use-my-own-info-plist-instead-of-okta-plist/28724>\
**Category:** OAuth/OIDC\
**Tags:** ios\
**Created:** [June 11, 2024, 10:16am UTC](https://devforum.okta.com/t/is-there-any-way-that-i-can-use-my-own-info-plist-instead-of-okta-plist/28724 "2024-06-11T10:16:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maheshnarla](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@maheshnarla](https://devforum.okta.com/u/maheshnarla)\
**Post date:** [June 11, 2024, 10:16am UTC](https://devforum.okta.com/t/is-there-any-way-that-i-can-use-my-own-info-plist-instead-of-okta-plist/28724/1 "2024-06-11T10:16:04Z")

</div>

I want to define the sign in and sign out and client id’s for different environment like stage and release. But in the SSO sample there is only okta file and I was unable to define for prod environment. Is there any way that I can use my own plist.

---

<div class="post-metadata">

**Author:** ![Mo\_Sharp](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@Mo\_Sharp](https://devforum.okta.com/u/Mo_Sharp)\
**Post date:** [June 11, 2024, 8:30pm UTC](https://devforum.okta.com/t/is-there-any-way-that-i-can-use-my-own-info-plist-instead-of-okta-plist/28724/2 "2024-06-11T20:30:34Z")

</div>

Both the Swift Mobile and IDX SDKs allow you to load the configuration values in multiple ways. When you let the SDK do the configuration it uses the default Okta.plist file. You’ll need to do the configuration manually, either from your own plist file or by specifying the values directly.

There’s a full explanation in the SDK documentation in the WebAuthentication class of the WebAuthenticationUI library. The article title is “Configuring Your Client.” The same explanation works for the OAuth2Client class in the AuthFoundation library. (To see the documentation, open your project in Xcode and make sure that the Okta libraries are loaded as package dependences. Then choose Help \> Developer Documentation and click on your app, then select the appropriate library and object.)

The configuration happens at initialization time. When you use the default initializer `init()`, it uses the Okta.plist file. To use your own plist file, call `init(plist: URL) throws` with the URL for the desired plist file. Other convenience initializers, such as `init(issuer:clientId:scopes:redirectUri:logoutRedirectUri:additionalParameters:)` let you specify all values without using a plist file.

Hopefully that helps.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [July 11, 2024, 8:30pm UTC](https://devforum.okta.com/t/is-there-any-way-that-i-can-use-my-own-info-plist-instead-of-okta-plist/28724/3 "2024-07-11T20:30:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
