private String getRedirectUrl()

in src/main/java/com/microsoft/aad/oidcpoc/AuthFlow.java [257:282]


    private String getRedirectUrl(String currentUri, String state, String nonce)
            throws UnsupportedEncodingException {
    	String redirectUrl = null;
    	if (is_b2c) {
            redirectUrl = authority
                    + this.tenant
                    + "/oauth2/authorize?response_type=code&scope=openid&response_mode=form_post&redirect_uri="
                    + URLEncoder.encode(currentUri, "UTF-8") + "&client_id="
                    + clientId + "&resource=https%3a%2f%2fgraph.windows.net"
                    + "&p=" + policy_susi
                    + "&state=" + state
                    + "&nonce=" + nonce;
    	}
    	else
    	{
            redirectUrl = authority
                    + this.tenant
                    + "/oauth2/authorize?response_type=code&scope=openid&response_mode=form_post&redirect_uri="
                    + URLEncoder.encode(currentUri, "UTF-8") + "&client_id="
                    + clientId + "&resource=https%3a%2f%2fgraph.windows.net"
                    + "&state=" + state
                    + "&nonce=" + nonce;
    	}

        return redirectUrl;
    }