@Lily Thank you for reaching out to Microsoft Q&A and sorry for the delay in response.
- Since you use Authorization Code flow, client secret has to be on authorization provider level and hence you would need to create one authorization provider configuration for each team. If you use Client Credentials, you can have one authorization configuration with multiple authorizations (each client id/secret). Refer docs describing this and idea#2 is the approach for your scenario.
- Yes correct, use snippet referenced in docs (or screenshot above) to pull the values based on query parameters or change it to headers or use policy expressions in the sample and set the values based on a condition. Try and let me know if you face any issues.
- As described in docs, Authorization Code is bound to a user context, and hence need to follow "Login with Generic Oauth 2" button and complete the authorization workflow (Process flow for creating authorizations) for each team/user. Check out Techcommunity article that shares an example with detailed steps in setting up authorizations (unfortunately it doesn't have multiple authorization scenario)
I hope these answers help with your questions and feel free to add a comment if you have any other questions. We would be happy to assist you. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.