Skip to content

Commit

Permalink
Rename OIDC auth extension (#3247)
Browse files Browse the repository at this point in the history
This PR renames the OIDC Auth Extension to oidcauthextension, following the naming pattern agreed as part of #3128

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling committed May 28, 2021
1 parent ba91818 commit 6fe96b0
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ This extension implements a `configauth.Authenticator`, to be used in receivers
```yaml
extensions:
oidc:
issuer_url: https:https://tenant1.example.com/
issuer_url: http:https://localhost:8080/auth/realms/opentelemetry
issuer_ca_path: /etc/pki/tls/cert.pem
client_id: my-oidc-client
audience: account
username_claim: email

receivers:
otlp:
protocols:
grpc:
authentication:
attribute: authorization
auth:
authenticator: oidc

processors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package authoidcextension
package oidcauthextension

import "go.opentelemetry.io/collector/config"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package authoidcextension
package oidcauthextension

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package authoidcextension
package oidcauthextension

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package authoidcextension
package oidcauthextension

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package authoidcextension
package oidcauthextension

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package authoidcextension
package oidcauthextension

import (
"bytes"
Expand Down
4 changes: 2 additions & 2 deletions service/defaultcomponents/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"go.opentelemetry.io/collector/exporter/prometheusexporter"
"go.opentelemetry.io/collector/exporter/prometheusremotewriteexporter"
"go.opentelemetry.io/collector/exporter/zipkinexporter"
"go.opentelemetry.io/collector/extension/authoidcextension"
"go.opentelemetry.io/collector/extension/healthcheckextension"
"go.opentelemetry.io/collector/extension/oidcauthextension"
"go.opentelemetry.io/collector/extension/pprofextension"
"go.opentelemetry.io/collector/extension/zpagesextension"
"go.opentelemetry.io/collector/processor/attributesprocessor"
Expand Down Expand Up @@ -57,7 +57,7 @@ func Components() (
var errs []error

extensions, err := component.MakeExtensionFactoryMap(
authoidcextension.NewFactory(),
oidcauthextension.NewFactory(),
healthcheckextension.NewFactory(),
pprofextension.NewFactory(),
zpagesextension.NewFactory(),
Expand Down

0 comments on commit 6fe96b0

Please sign in to comment.