Skip to content
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

Changing functionality to allow Oauth if template auth does not exist. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tristanwellz
Copy link

Changing the smartdocs_oauth_additions_form_generate_token function workflow to allow Oauth if the model does not have a template auth setup.

$entity = reset($entity);
$client_id = $entity->consumerKey;
$client_secret = $entity->consumerSecret;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get what you are trying to do. But if the key does not have the OAuth API Product the token would not be generated and the user would not know why this happens.

Do you think we can create an admin page to store default credentials to use (which administrators set) incase template auth don't exist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants