Endevor B4G: Full Authentication Required.
search cancel

Endevor B4G: Full Authentication Required.

book

Article ID: 268856

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

After some success using the mapping function of Endevor Bridge for Git,  elements updated in local branch are unable to sync back to Endevor. After a pull or a Sync request, the service spins until it tires out, spitting out an error that says "Full Authentication Required". Git sever is Bitbucket. 

org.springframework.security.authentication.InsufficientAuthenticationException: Full authentication is required to access this resource
    at org.springframework.security.web.access.ExceptionTranslationFilter.handleAccessDeniedException(ExceptionTranslationFilter.java:199)
    at org.springframework.security.web.access.ExceptionTranslationFilter.handleSpringSecurityException(ExceptionTranslationFilter.java:178)

Environment

Endevor Release : 18.1

B4G  2.13.0

 

Cause

Couple of reasons can cause "Endevor Bridge for Git Error: Full Authentication Required error"

1) Manually modified private key. 

2) Private key definied in application.yml and public key in application link are not from the same RSA key pair.  

Resolution

Use openssl command to generate matching private and public key pair. 

openssl genrsa -out privkey.pem 2048
openssl rsa -pubout -in privkey.pem -out pubkey.pem

 

Enter the private-key information in application.yml.

bitbucket:
    oauth:  

    # Location of your private key file, corresponding public key is set in OAuth Application Link
      private-key: <path/to/private/key.pem>       

Recreate application link, put the contents of the public key in the application link incoming authentication oauth public key field. 

Clear browser cached image and cookies,  restart B4G application.

Follow the instruction to login to B4G.