Skip to content

Commit

Permalink
Enable xoauth2 mail prop for xoauth2 login
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed Nov 11, 2024
1 parent 15dcea9 commit 43adcad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public IntegrationFlow imapMailFlowOauth() {
private Properties getImapOauthProperties() {
Properties javaMailProperties = mailIntegration.getImapDefaultProperties();
javaMailProperties.setProperty("mail.imaps.sasl.mechanisms", "XOAUTH2");
javaMailProperties.setProperty("mail.imaps.auth.xoauth2.disable", "false");
return javaMailProperties;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@

import org.eclipse.pass.deposit.DepositApp;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.TestPropertySource;

/**
* @author Russ Poetker ([email protected])
*/
@SpringBootTest(classes = DepositApp.class)
@Import(OauthTestConfig.class)
@TestPropertySource("classpath:test-application.properties")
@TestPropertySource(properties = {
"nihms.email.oauth.test.it=true",
Expand Down

0 comments on commit 43adcad

Please sign in to comment.