<commit_before>package oauth2

import (
	"fmt"

	"github.com/vardius/go-api-boilerplate/cmd/user/internal/application/config"
	"golang.org/x/oauth2"
)

// NewConfig provides oauth2 config
func NewConfig() oauth2.Config {
	return oauth2.Config{
		ClientID:     config.Env.App.ClientID,
		ClientSecret: config.Env.App.ClientSecret,
		Scopes:       []string{"all"},
		Endpoint: oauth2.Endpoint{
			AuthURL:  fmt.Sprintf("http://%s:%d/authorize", config.Env.Auth.Host, config.Env.HTTP.Port),
			TokenURL: fmt.Sprintf("http://%s:%d/token", config.Env.Auth.Host, config.Env.HTTP.Port),
		},
	}
}<commit_msg>Add /v1 prefix to oauth2Config<commit_after>package oauth2

import (
	"fmt"

	"github.com/vardius/go-api-boilerplate/cmd/user/internal/application/config"
	"golang.org/x/oauth2"
)

// NewConfig provides oauth2 config
func NewConfig() oauth2.Config {
	return oauth2.Config{
		ClientID:     config.Env.App.ClientID,
		ClientSecret: config.Env.App.ClientSecret,
		Scopes:       []string{"all"},
		Endpoint: oauth2.Endpoint{
			AuthURL:  fmt.Sprintf("http://%s:%d/v1/authorize", config.Env.Auth.Host, config.Env.HTTP.Port),
			TokenURL: fmt.Sprintf("http://%s:%d/v1/token", config.Env.Auth.Host, config.Env.HTTP.Port),
		},
	}
}
{'fraction_non_alphanumeric': 0.1673469387755102, 'fraction_numerical': 0.013061224489795919, 'mean_word_length': 4.108333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4324140', 'n_tokens_mistral': 486, 'n_tokens_neox': 458, 'n_words': 66}